Cataclysm.Transform
Cataclysm.Transform
CCML/Source/Cataclysm/ECS/Components/Transform.cs
public class Transform : Component
Property | Description |
---|
Vec3 GlobalRotation | Global rotation in euler angles. |
Vec3 GlobalScale | Global scale. |
Vec3 GlobalTranslation | Global translation in euclidean space. |
Vec3 Rotation | Local rotation in euler angles. |
Vec3 Scale | Local scale. |
Vec3 Translation | Local translation in euclidean space. |
Method | Description |
---|
void Rotate(Vec3 rotation) | Adds the given rotation to the entity’s rotation. |
void Translate(Vec3 translation) | Adds the given translation to the entity’s translation. |
override void Reset() | Resets component fields to default values. |