PhysicsWorld.TransformPlaneCustom
A transformation applied to the transform write if _transformPlane is set to PhysicsWorld.TransformPlane.Custom.
Read time 1 minuteLast updated 8 days ago
Definition
- Type: Struct
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
- Implements: ISerializationCallbackReceiver
public struct PhysicsWorld.TransformPlaneCustom : ISerializationCallbackReceiver
Constructors
Constructor | Description |
|---|---|
| TransformPlaneCustom() | Create a transform plane custom as identity. |
| TransformPlaneCustom(UnityEngine.Vector3,UnityEngine.Vector3,System.Single) | Create a transform plane custom. |
Properties
Property | Description |
|---|---|
| fromCustom | Get the custom matrix defining how to transform from the custom world-space to the PhysicsWorld space. |
| rotate | Get the custom rotation. |
| scale | Get the uniform scale. |
| toCustom | Get the custom matrix defining how to transform from PhysicsWorld space to the custom world-space. |
| translate | Get the custom translation. |
Methods
Method | Description |
|---|---|
| FromPosition | Transform from a 3D custom world-space position back to a 2D PhysicsWorld position. |
| ToPosition | Transform a 2D PhysicsWorld position to a 3D custom world-space position. |