SCRIPTING API / Characters and gameplay / Rotator
Rotator
Script access to an entity's Rotator, which turns the entity at a constant rate.
Kindclass
NamespaceKroys.EngineScripting
Members3
Source
Generated/NativeComponents.g.cs, NativeComponents.csDECLARATION
Declaration
Component access: every member takes the entity first, for example Rotator.Has(Entity). The values are the ones the Inspector shows for this component.
Declaration
public static partial class Rotator
REFERENCE
Members
Methods
#public static bool Has(Entity e)Whether the entity has a Rotator component.
#public static float GetDegreesPerSecond(Entity e)Reads the Rotator component's Degrees Per Second value of the entity.
#public static void SetDegreesPerSecond(Entity e, float value)Sets the Rotator component's Degrees Per Second value on the entity.
Signatures
public static bool Has(Entity e) public static float GetDegreesPerSecond(Entity e) public static void SetDegreesPerSecond(Entity e, float value)
KroysEngine 0.1.0 documentation, built from the engine repository by Tools/BuildDocsSite.py.