Click or drag to resize

BodySetTransform(Vector2, Single) Method

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: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public void SetTransform(
	ref Vector2 position,
	float rotation
)

Parameters

position  Vector2
The world position of the body's local origin.
rotation  Single
The world rotation in radians.
Exceptions
ExceptionCondition
InvalidOperationExceptionThrown when the world is Locked/Stepping.
See Also