文档

Unity Engine

Unity Engine

GetPose(TransformPlane, ref TransformPlaneCustom, bool, out Vector3, out Quaternion)

Get the write pose for the current write tween.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule

GetPose(TransformPlane, TransformPlaneCustom, bool, Vector3, Quaternion)

public readonly void GetPose(PhysicsWorld.TransformPlane transformPlane, ref PhysicsWorld.TransformPlaneCustom transformPlaneCustom, bool fast2D, out Vector3 position, out Quaternion rotation)

Parameters

transformPlane

The transform plane to use to calculate a non-custom transform plane.

transformPlaneCustom

The custom transform plane to use.

fast2D

Whether to perform fast 2D or slow 3D calculations. See PhysicsWorld.TransformWriteMode.

position

The calculated position.

rotation

The calculated rotation.