Component:ColorByOrientationDirection

From Resonite Wiki
Component image 
Color By Orientation Direction component as seen in the Scene Inspector

The ColorByOrientationDirection component is used to make particles change color depending on their dot product of their orientation to a reference orientation. Dot product essentially means how close in terms of angle is one direction to another. The colors when in-between are lerped.

This component is part of the Photon Dust system made by Frooxius.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
ReferenceDirection Float3 The direction in local space that is being used as a reference.
AlignedColor ColorX The color to use if the particle's orientation is exactly the same direction as ReferenceDirection.
OrthogonalColor ColorX The color to use if the particle's orientation is exactly 90 degrees to ReferenceDirection. This 90 degrees falls onto any particle direction that is along the surface of a plane facing the same direction as ReferenceDirection.
OppositeColor ColorX The color if the particle's orientation is exactly opposite of ReferenceDirection.

Usage

Attach to a slot, add to the list of modules in a Component:ParticleSystem, and adjust the values to make the desired effect from this component.

Examples

This article or section is a Stub. You can help the Resonite Wiki by expanding it.

See Also