Crate bevy_mod_lookat
source ·Structs§
- When this component is added on an entity,
Transform::forward()direction points towards the selected entity - Plugin that constantly rotates entities towards a selected target when they have the
RotateTocomponent on them if you only want the math for calculating the local rotation needed to look at a target, seecalculate_local_rotation_to_target
Enums§
- The rotated entity will try to have its
Transform::up()direction matching this selection
Functions§
- Calculates the local rotation on a rotator towards a target, adjusting for rotations of eventual parents, with the selected rotator up direction.