Crate bevy_mod_lookat

Crate bevy_mod_lookat 

Source

Structs§

RotateTo
When this component is added on an entity, Transform::forward() direction points towards the selected entity always
RotateTowardsPlugin
Plugin that constantly rotates entities towards a selected target when they have the RotateTo component on them.
RotatedToBy

Enums§

UpDirection
The rotated entity will try to have its Transform::up() direction matching this selection

Functions§

calculate_local_rotation_to_target
Calculates the local rotation on a rotator towards a target, adjusting for rotations of eventual parents, with the selected rotator up direction.