Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetInterpolatedPose(TransformPlane, ref TransformPlaneCustom, bool, float, out Vector3, out Quaternion)

Get the interpolated pose for the current write tween.
Read time 1 minuteLast updated 13 days ago

Definition

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

GetInterpolatedPose(TransformPlane, TransformPlaneCustom, bool, float, Vector3, Quaternion)

public readonly void GetInterpolatedPose(PhysicsWorld.TransformPlane transformPlane, ref PhysicsWorld.TransformPlaneCustom transformPlaneCustom, bool fast2D, float interpolationTime, 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.

interpolationTime

The interpolation time to use in the range [0, 1].

position

The calculated position.

rotation

The calculated rotation.