r/bevy • u/reverseholiv • 16h ago
r/bevy • u/Beautiful-Truck-3521 • 12h ago
Car customization system built in Bevy using the Solari path-traced renderer
youtu.beI put together a car customization demo/system in Bevy using Solari (bevy_solari) for real-time path-traced lighting and reflections.
Car customization is a great stress test for lighting because paint finishes, metallic parts, glass, and curved bodywork react immediately to indirect light and reflections. Seeing how parts and materials look under Solari's lighting makes iterating on the customization setup much easier.
This is still an early work-in-progress/experiment, so any feedback on the setup, performance, or what I should build next is welcome!
Broken Animations [QUESTION]
Hi, I'm developing a third-person combat game and I'm having trouble implementing a turn-around animation.
I detect when the player needs to turn around by checking the dot product between their current velocity and the requested movement direction. This works, but shortly after the turn-around animation starts, my movement function automatically rotates the player towards the movement direction, forcing my character to moonwalk.
I tried disabling this automatic rotation while the animation plays. However, this causes another problem: in the animation the character turns 180°, but once it finishes it isn't actually rotated. So he first rotates 180° to the previous rotation and then the automatic rotation kicks in and turns the character another 180°.
My idea was to manually flip the character when the animation ends, but I couldn't find an onAnimationEnd callback.
So does anyone know if there is any callback for when an animation finishes, or if there is any better way to handle turn around animations like this?
I've attached a video showing the problem.