Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

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

fromCustomGet the custom matrix defining how to transform from the custom world-space to the PhysicsWorld space.
rotateGet the custom rotation.
scaleGet the uniform scale.
toCustomGet the custom matrix defining how to transform from PhysicsWorld space to the custom world-space.
translateGet the custom translation.

Methods

Method

Description

FromPositionTransform from a 3D custom world-space position back to a 2D PhysicsWorld position.
ToPositionTransform a 2D PhysicsWorld position to a 3D custom world-space position.