Jump to content

Two physics systems on the same sprite: it might be possible


ForgeableSum
 Share

Recommended Posts

I realize you can't have two physics systems on the same sprite body. But what I'm postulating is that you can have multiple physics systems on the same *sprite*. 

 

Picture this: the sprite body gets arcade physics enabled. an invisible sprite gets a body with p2 enabled. Then it's just a matter of updating the x/y of the visible sprite to that of the invisible sprite whenever a p2 action is performed and vice versa when an arcade physics action is performed.

 

I'm talking about a scenario in which the effects (i.e. a sprite is bouncing) of the p2 and arcade methods only last for milliseconds, otherwise it wouldn't be possible. But as long as p2 and arcade physics methods aren't making changes simultaneously, couldn't this, in theory, work?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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