Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

PhysicsTransform

struct in UnityEngine.LowLevelPhysics2D

/

Implemented in:UnityEngine.Physics2DModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Represents a 2D transformation combining a translation and a PhysicsRotate.

Static Properties

Property Description
identity The identity transformation i.e. a transformation with no translation or rotation.

Properties

Property Description
isValid Check if the PhysicsTransform is valid (position is not NaN and PhysicsRotate.isValid).
position The translation for the transformation.
rotation The rotation for the transformation.

Constructors

Constructor Description
PhysicsTransform Create an identity transform.

Public Methods

Method Description
GetPositionAndRotation Get both the position and rotation.
InverseMultiplyTransform Inverse Multiply the specified transform with the current transform.
InverseTransformPoint Inverse Transform a point using the current transform translation and rotation.
MultiplyTransform Multiply the specified transform with the current transform.
TransformPoint Transform a point using the current transform translation and rotation.

Operators

Operator Description
PhysicsTransform Implicit conversion of a UnityEngine.Vector2 that represents a translation transformation with no rotation.
PhysicsTransform Implicit conversion of a PhysicsRotate that represents a rotation transformation with no translation.