Component:ColorByVelocityDirection: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
add info
 
Line 3: Line 3:
|Name=Color By Velocity Direction
|Name=Color By Velocity Direction
}}
}}
The '''Color By Velocity Direction''' component
The '''Color By Velocity Direction''' component changes the color of a particle depending on the dot product of it's velocity vs a specified axis.
{{stub}}


== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|ReferenceDirection|Float3|
|ReferenceDirection|Float3| The direction to make a dot product with the particle's velocity.
|AlignedColor|ColorX|
|AlignedColor|ColorX| The color the particle should be when it has velocity that gives dot product of 1 with <code>ReferenceDirection</code>.
|OrthogonalColor|ColorX|
|OrthogonalColor|ColorX| The color the particle should be when it has velocity that gives dot product of 0 with <code>ReferenceDirection</code>.
|OppositeColor|ColorX|
|OppositeColor|ColorX| The color the particle should be when it has velocity that gives dot product of -1 with <code>ReferenceDirection</code>.
}}
}}


== Usage ==
== Usage ==
{{stub}}


== Examples ==
== Examples ==
{{stub}}


== See Also ==
== See Also ==
Line 22: Line 23:
[[Category:Components:Rendering:Particle System:Modules{{#translation:}}|Color By Velocity Direction]]
[[Category:Components:Rendering:Particle System:Modules{{#translation:}}|Color By Velocity Direction]]
[[Category:Components{{#translation:}}|Color By Velocity Direction]]
[[Category:Components{{#translation:}}|Color By Velocity Direction]]
[[Category:ComponentStubs]]

Latest revision as of 22:48, 18 March 2025

Component image 
Color By Velocity Direction component as seen in the Scene Inspector

The Color By Velocity Direction component changes the color of a particle depending on the dot product of it's velocity vs a specified axis.

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 to make a dot product with the particle's velocity.
AlignedColor ColorX The color the particle should be when it has velocity that gives dot product of 1 with ReferenceDirection.
OrthogonalColor ColorX The color the particle should be when it has velocity that gives dot product of 0 with ReferenceDirection.
OppositeColor ColorX The color the particle should be when it has velocity that gives dot product of -1 with ReferenceDirection.

Usage

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

Examples

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

See Also