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.DynamicsAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntaxpublic void SetTransform(
Vector2 position,
float rotation
)
Parameters
- position Vector2
- The world position of the body's local origin.
- rotation Single
- The world rotation in radians.
Exceptions
See Also