PositionPacket Constructor (Int32, Boolean, Vector3, Single, Vector3)
Initializes a new instance of the PositionPacket class with specified parameters, including delta time and linear velocity.
Namespace:
com.onlineobject.objectnetAssembly: ObjectNetAPI (in ObjectNetAPI.dll)
Syntax
Parameters
- tick
- Type: Int32
The simulation tick at which the position is recorded.
- teleport
- Type: Boolean
Whether the position change was a result of a teleport.
- position
- Type: Vector3
The position of the object in 3D space.
- deltaTime
- Type: Single
The time elapsed since the last position update.
- linearVelocity
- Type: Vector3
The linear velocity of the object.