Click or drag to resize

BodySetTransform Method (Vector2, Single)

Set the position of the body's origin and rotation. This breaks any contacts and wakes the other bodies. Manipulating a body's transform may cause non-physical behavior. Warning: This method is locked during callbacks.

Namespace:  Internal.tainicom.Aether.Physics2D.Dynamics
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public void SetTransform(
	Vector2 position,
	float rotation
)

Parameters

position
Type: Internal.tainicom.Aether.Physics2D.CommonVector2
The world position of the body's local origin.
rotation
Type: SystemSingle
The world rotation in radians.
Exceptions
ExceptionCondition
InvalidOperationExceptionThrown when the world is Locked/Stepping.
See Also