Bevy Rapier 2D issue #9119
-
Hey friends, I have a problem I can't figure out. I'm making a derpy little zelda clone. My character has a rigid body and a collider, and I'm trying to spawn a sword entity when the player presses the sword button. What I'm doing is creating the sword entity as a child entity of the character so that its transform remains connected to the player as the sword animates. The sprite animation and visual motion works fine. The character moves using a Velocity component, and the sword sprite moves around the character the way I expect it would, but the sword collider (a sensor right now, but I've tried a kinematic position based rigid body too) DOESN'T move. It just stays in the initial position I put it. I've been adding the sensor/collider to the same entity as the sword sprite, so I'd assume they would transform the same. What do? Diagram of the entity structure: Character: Transform, TextureAtlasSprite, RigidBody, Collider, Velocity, etc |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think this might be related: dimforge/bevy_rapier#292 (comment) |
Beta Was this translation helpful? Give feedback.
I think this might be related: dimforge/bevy_rapier#292 (comment)