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.