Struct ObjectMoveData
Represents the movement data of an object, including its target position, target rotation, and speed.
public readonly struct ObjectMoveData
- Inherited Members
Constructors
ObjectMoveData(Vector3, Vector3, float)
Initializes a new instance of the ObjectMoveData struct.
public ObjectMoveData(Vector3 targetPos, Vector3 targetRot, float speed)
Parameters
targetPosVector3The target position of the object.
targetRotVector3The target rotation of the object.
speedfloatThe speed at which the object moves.
Fields
Speed
Gets the speed at which the object moves.
public readonly float Speed
Field Value
TargetPos
Gets the target position of the object.
public readonly Vector3 TargetPos
Field Value
TargetRot
Gets the target rotation of the object.
public readonly Vector3 TargetRot