Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetAndWriteTransform(PhysicsTransform)

Set the full transform of the body composed of position and rotation and also write to the associated PhysicsBody.transformObject. The PhysicsBody.transformObject won't be written to if it isn't assigned or the PhysicsWorld.transformWriteMode are off. The body will always be updated however. See PhysicsBody.transformObject.
Read time 1 minuteLast updated 13 days ago

Definition

public bool SetAndWriteTransform(PhysicsTransform transform)

Parameters

The full transform of the body composed of position and rotation.

Returns

Type

Description

boolWhether the PhysicsBody.transformObject was written to.