com.onlineobject.objectnet Namespace

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.objectnet
Assembly:  ObjectNetAPI (in ObjectNetAPI.dll)

Syntax


public PositionPacket(

	int tick,

	bool teleport,

	Vector3 position,

	float deltaTime,

	Vector3 linearVelocity

)

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.