OnTransformTweenWrite(TransformTweenWriteEvent)
The callback will only occur if _transformTweenMode is set to PhysicsWorld.TransformTweenMode.Custom and there are transform write tweens available. This will always be called on the main-thread after the simulation has finished. You should avoid write operations on physics objects during this callback. NOTE: When transform tweening, you can calculate PhysicsBody.TransformWriteMode.Interpolate or PhysicsBody.TransformWriteMode.Extrapolate write modes by using PhysicsBody.TransformWriteTween.GetInterpolatedPose and PhysicsBody.TransformWriteTween.GetExtrapolatedPose respectively.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
void OnTransformTweenWrite(PhysicsEvents.TransformTweenWriteEvent transformTweenWriteEvent)
Parameters
The event that occurred.