object.copy_rotation_from

Rotate one object to match another.

Arguments

other

The object whose rotation should be copied.

all_axes

A boolean indicating whether to copy all of the other object's axes of rotation (true) or just its heading (false).

Example

global.object[0].copy_rotation_from(global.object[1], true)

Notes

See also