Punchausen Posted October 15, 2017 Share Posted October 15, 2017 Hi folks, I'm hoping someone can help me - I'm wanting to implement a game where you control a space rocket pulling a heavy object - so basically in addition to the thrust and inertia of the rocket, you have the payload being pulled which will also affect it (swinging past and pulling the space rocket if it stopped, for instance). I've been trying to find any example of these physics in play, but the closest I can find is http://phaser.io/examples/v2/p2-physics/mouse-spring#gv Any help of pointing me in the right direction is very appreciated! Link to comment Share on other sites More sharing options...
samid737 Posted October 15, 2017 Share Posted October 15, 2017 You can try to combine the example with this rocket model: It includes pretty much all that is needed for rocket physics (gravity, drag, wind, propulsion, but excludes control). If you can manage to attach the object/spring to the rocket, P2 should be able to solve the rest. If you in some way are not in need of P2 physics, here is the arcade physics version: Link to comment Share on other sites More sharing options...
Punchausen Posted October 19, 2017 Author Share Posted October 19, 2017 Apologies for thankyou for a lot of effort you put into answering the question, much appreciated! Link to comment Share on other sites More sharing options...
Recommended Posts