[ad_1]
I have been trying throughout, however all of the libraries I’ve discovered appear to fall into two classes: “Every little thing and the kitchen sink,” or “We detect collisions, however do not truly resolve them.”
I first tried making my very own from scratch and acquired about 90% of the way in which there, however there appeared to be an infinite quantity of bizarre edge circumstances to cope with the place it’d make extra sense simply to make use of a library in the intervening time.
I am at the moment utilizing MatterJS, however getting exact platformer motion (i.e. if you let go of the button the participant stops shifting) is a large PITA since Matter needs to do the whole lot “correctly,” by simulating momentum and stuff, which is the alternative of what I would like.
All I want is gravity + field collisions. Anybody know of a easy stripped down library like that gives this? Actually, even simply correct collision detection/decision could be OK as I can do gravity myself.
[ad_2]