mirror of
https://github.com/bevyengine/bevy
synced 2025-01-01 07:48:51 +00:00
f584e72953
# Objective - Missing obvious way to rotate a transform around a point. This is popularly used for rotation of an object in world space ("orbiting" a point), or for local rotation of an object around a pivot point on that object. - Present in other (not to be named) game engines - Was question from user on Discord today (thread "object rotation") ## Solution - Added Transform::rotate_around method where point is specified in reference frame of the parent (if any) or in world space. |
||
---|---|---|
.. | ||
components | ||
hierarchy | ||
lib.rs | ||
transform_propagate_system.rs |