Isolate Physics to Certain Layers or Groups

This forum is currently in read-only mode.
From the Asset Store
Simple yet very life-like rag doll made with Physics!
  • It seems like once you apply the physics behavior to a group of sprites they all behave as though they are sharing one physical world. I would like to be able to have some interact separately from the group, as if it were on a different layer, for example multiple depth of action (excitebike comes to mind). Anyone know of the simplest way to do this? It would be simple enough to do with if-then statements in a normal collision, but the physics engine has its built in way of doing things...

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • The only ways I can think of are:

    1. Using the 'disable collisions with' action - though I'm not sure if that disables collisions with individual instances or entire objects. You might need different objects for each layer.

    2. Create a 'projection' - have the physics simulation happen somewhere else in the layout offscreen somewhere, then for each sprite create and place another that doesn't have physics at the location of the physics sprite adjusted so it appears on screen. Like if the physics sim starts at x 1000, then create/place the object at physicsobject.x-1000.

  • Hmm, okay thanks! I had thought of the projection approach but it seemed like there ought to be a simpler way, but maybe this is that way...

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)