Limited RigidBody rotation in 2d #246
Labels
A-Integration
very bevy specific
C-Enhancement
New feature or request
D-Difficult
Needs strong technical background, domain knowledge, or impacts are high, needs testing...
P-Low
S-not-started
Work has not started
I've noticed that directly altering the rotation of an entity containing a
RigidBody
component is only possible around the z-axis; however, entities without aRigidBody
(even entities containing aCollider
) can have their rotations directly altered:The above code panics with the following:
Is there an effective way to instantly change the rotation of a
RigidBody
? I understand thatbevy_rapier2d
is a 2d physics engine, but the ability to rotate the entity around the x- and y-axes is especially useful for changing its orientation (e.g., flipping the player sprite in a platformer).The text was updated successfully, but these errors were encountered: