Interface ITransformSystem
System that performs transformations on 2d and 3d objects including position, rotation, scale, and parenting. This is the system that should be used whenever you need to do any of the aformentioned operations.
Inherited Members
Namespace: Ride
Assembly: cs.temp.dll.dll
Syntax
public interface ITransformSystem : IRideSystem, IApiInject, IIdentity
Methods
Name | Description |
---|---|
DestroyChildren(RideID) | Destroy all child transforms of the given parent |
GetChild(RideID, Int32) | Gets the child transform at the given index. This works for 1st generation children only |
GetChild(RideID, String) | Gets the child transform by name. Searches recursively |
GetChildCount(RideID) | Get the number of 1st generation children of the transform |
GetForwardDirection(RideID) | Gets the forward directional vector of the transform |
GetLocalPosition(RideID) | Get the local position of the transform |
GetLocalRotation(RideID) | Get the local rotation of the transform |
GetLocalScale(RideID) | Gets local scale of transform. |
GetLossyScale(RideID) | Gets lossy scale of transform. This is global scale. |
GetParent(RideID) | |
GetPosition(RideID) | Get the world position of the transform |
GetRightDirection(RideID) | Gets the right directional vector of the transform |
GetRotation(RideID) | Get the world rotation of the transform |
GetUpDirection(RideID) | Gets the up directional vector of the transform |
InverseTransformPoint(RideID, RideVector3) | Returns a point in world space to local space. |
LookAt(RideID, RideVector3) | Set the forward direction of the transform to look at a point |
Rotate(RideID, RideVector3) | Rotates the transform with euler angles |
RotateAround(RideID, RideVector3, RideVector3, Single) | Rotates the transform about axis passing through point in world coordinates by angle degrees. This modifies both the position and the rotation of the transform. |
SetAsFirstSibling(RideID) | Sets transform to be the first transform relative to its sibling transforms. |
SetAsLastSibling(RideID) | Sets transform to be the last transform relative to its sibling transforms. |
SetForward(RideID, RideVector3) | Set the forward direction of the transform |
SetLocalPosition(RideID, RideVector3) | Set the local position of the transform. If the transform doesn't have a parent, the world position is set |
SetLocalRotation(RideID, RideQuaternion) | Set the local rotation of the transform |
SetLocalScale(RideID, RideVector3) | Sets local scale of transform. |
SetParent(RideID, RideID) | Attachs the child transform to the parent transform |
SetPosition(RideID, RideVector3) | Set the world position of the transform |
SetRotation(RideID, RideQuaternion) | Set the world rotation of the transform |
SetSiblingIndex(RideID, Int32) | Sets order of transform relative to its sibling transforms. |
TransformPoint(RideID, RideVector3) | Returns a point in local space to world space. |
Translate(RideID, RideVector3) | Moves the transform's global position in the direction and distance of the translation |
TranslateLocal(RideID, RideVector3) | Moves the transform's local position in the direction and distance of the translation |