Bitfield of RotationAxis values indicating which axes to lock.
When true, axes are locked in the object's local space; otherwise world space.
Bitfield of RotationAxis values indicating which axes to lock.
When true, axes are locked in the object's local space; otherwise world space.
Modifies followObject in-place. Invoked after position is resolved each frame.
Called once at drag start and again whenever the drag context resets (e.g. multi-touch → single-pointer transition). Capture any object snapshot (position, rotation, scale) you need to hold fixed during the drag. Constraints that need no dynamic initialization may omit this method.
Freezes individual rotation axes (X, Y, and/or Z) of the dragged object. The locked axis values are captured once at construction time and restored every frame.
Set useLocalSpace to
trueto lock axes in the object's local space; leave itfalse(default) to lock axes in world space.Example: Lock Y-axis rotation in world space: