ドキュメント

Unity Engine

Unity Engine

PhysicsTransform

Represents a 2D transformation combining a translation and a PhysicsRotate.
読み終わるまでの所要時間 1 分最終更新 8日前

Definition

public struct PhysicsTransform : IEquatable<PhysicsTransform>

Fields

Value

Description

positionThe translation for the transformation.
rotationThe rotation for the transformation.

Constructors

Constructor

Description

PhysicsTransform()Create an identity transform.
PhysicsTransform(UnityEngine.Vector2)Create a transformation with the specified translation and no rotation.
PhysicsTransform(UnityEngine.Vector2,Unity.U2D.Physics.PhysicsRotate)Create a transformation with the specified translation and rotation.

Properties

Property

Description

isFiniteCheck if every value of the transform is finite, so neither NaN nor infinity.
isValidCheck if the PhysicsTransform is valid (position is finite and PhysicsRotate.isValid).

Static Properties

Property

Description

identityThe identity transformation i.e. a transformation with no translation or rotation.

Methods

Method

Description

GetPositionAndRotationGet both the position and rotation.
InverseMultiplyTransformInverse Multiply the specified transform with the current transform.
InverseTransformPointInverse Transform a point using the current transform translation and rotation.
MultiplyTransformMultiply the specified transform with the current transform.
TransformPointTransform a point using the current transform translation and rotation.

Operators

Operator

Description

PhysicsTransformImplicit conversion of a PhysicsRotate that represents a rotation transformation with no translation.