Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PhysicsWorld.TransformWriteMode

Defines how the 2D Transforms from each PhysicsBody are written to the 3D Transform system.
Read time 1 minuteLast updated 9 days ago

Definition

public enum PhysicsWorld.TransformWriteMode

Fields

Value

Description

Fast2DTransforms are written but the rotation is converted to a Quaternion where only a single axis is written, all others will be set to zero rotation. This is the fastest method of writing transforms however, any 3D rotations or rotations on the unused axis will be reset to zero. The rotational axis written to depends on the current PhysicsWorld.TransformPlane selected with PhysicsWorld.transformPlane where it will always be perpendicular to the transform plane.
OffTransforms are never written. This is the fastest operation.
Slow3DTransforms are written but the rotation is converted to a Quaternion where the rotation of the body transform is merged into the existing 3D rotation. This is the slowest method of writing transforms however, all 3D rotations are preserved. The rotational axis written to depends on the current PhysicsWorld.TransformPlane selected with PhysicsWorld.transformPlane where it will always be perpendicular to the transform plane.