Your library seems to be very interesting I would like to do make a slinghot games with your library. Have you a specific example ? I don’t see this in your webpage.
I don’t have an example. But it shouldn’t be a problem.
During the aim, the body could be kinematic and switches to dynamic once ready to shoot. You just need the proper math for the calculation of the force/direction for shooting.
@yannick Hey man headless ammo is the coolest thing. I have a quick question.
Can you apply physics to an object after using setVelocity or setAngularVelocity on them? When I use these functions and collide with anything the physics basically cancel out because I’m directly setting the speeds.
Basically I’m making a basic flight sim but if I use the torque and force commands the physics become way more complex.
This flight sim is made in In cannon.js:
It sets the velocities directly rather than applying force but there’s still physics applied because the velocities are all set in a prestep function.