pad Posted December 28, 2016 Share Posted December 28, 2016 Hi together, did everyone know how i can implement the P2 TopDownVehicle into phaser? I try everything, but it won't work I found something in the phaser.js with TopDownVehicle but i don't know how to use it. Did someone have some examples or something? Thanks paD Link to comment Share on other sites More sharing options...
willeastcott Posted December 28, 2016 Share Posted December 28, 2016 I don't know Phaser but the PlayCanvas integration is here: https://github.com/playcanvas/playcanvas-p2.js/blob/master/p2-integration.js#L1188 Example app: https://playcanv.as/p/FKahzJnU/ Perhaps that can act as reference to help you port it to Phaser? Link to comment Share on other sites More sharing options...
pad Posted December 29, 2016 Author Share Posted December 29, 2016 hm.. it looks like topdown vehicle.. but i did not found the physic in the script.. In p2js only (without Phaser) the topdownvehicle works perfekt.. but the integration won't work :/ Link to comment Share on other sites More sharing options...
willeastcott Posted December 30, 2016 Share Posted December 30, 2016 I can't think what the problem might be. I found it really easy to port the p2.js top down vehicle example to PlayCanvas. Single step the set up of the physics world, the creation of the shape, body and vehicle and check all the values look good. Link to comment Share on other sites More sharing options...
pad Posted December 30, 2016 Author Share Posted December 30, 2016 To Canvas yes, but to Phaser no.. Link to comment Share on other sites More sharing options...
Recommended Posts