Jump to content

remove body from physics simulation and control movement


maf
 Share

Recommended Posts

I've got a vehicle I want to remove from the p2 physics simulation and move it manually to a landing point:

this.vehicle.body.removeFromWorld();this.add.tween( this.vehicle).to( { x : this.landingPoint.x, y : this.landingPoint.y - this.vehicle.height / 2 }, 500, null, true);

but removing it from the physics world seems to deny any further control of the vehicle's position - am i going about this the wrong way?

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...