PhysicsTransform
Create an identity transform.
Read time 1 minuteLast updated 9 days ago
Definition
- Type: Constructor
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
PhysicsTransform()
Create an identity transform.
public PhysicsTransform()
PhysicsTransform(Vector2)
Create a transformation with the specified translation and no rotation.
public PhysicsTransform(Vector2 position)
Parameters
The translation for the transformation.
PhysicsTransform(Vector2, PhysicsRotate)
Create a transformation with the specified translation and rotation.
public PhysicsTransform(Vector2 position, PhysicsRotate rotation)
Parameters
The translation for the transformation.
The rotation for the transformation.