ReadPose(Transform, out Vector3, out Quaternion)
Read the full 3D position and rotation of the body given the specified Transform.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
ReadPose(Transform, Vector3, Quaternion)
public void ReadPose(Transform transform, out Vector3 position, out Quaternion rotation)
Parameters
The Transform object to be used as a reference when converting from 2D position/rotation to 3D position/rotation, usually the same as any TransformObject assigned to the PhysicsBody.
The calculated output position.
The calculated output rotation.