bug with physics consilion

0 favourites
  • 4 posts
From the Asset Store
Simple yet very life-like rag doll made with Physics!
  • Hello

    I made a rotating box with little boxes (like a sand) in it , when I rotate the main box the physics consilion stops work and little boxes are falling trough the walls of main box.

    please se link

    dropbox.com/s/g9rjy5py0rw6ujb/labir.capx

    Thank you.

  • This isn't a bug.

    When you use apply the physics behaviour to an object, any other motion you give it directly conflicts with the physics. You're basically telling C2 "this object is bound by the laws of physics", and also "spin this object because I said so" - which are conflicting messages.

    First, you should use the "apply torque" action to rotate your lab instead of simply rotating the sprite. But this requires that you set immovable to no, which is obviously a bit of an issue because the lab would collapse to the ground. I'd suggest that you create a new, invisible or visible, non-collidable object (a "pin" so to speak) and bind the lab to that with a revolute joint. Set the pin to be immovable, effectively trapping the lab in place but allowing it to rotate freely.

    You should also alter the density of your sand and lab objects to better represent their approximate mass in the real world (so the sand doesn't "push" around the lab).

    Here's an updated capx for you.

  • GeometriX

    I have same questions too . can you add me skype or FB.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I understand all.

    but when i use "apply torque" my box "lab" having same inertion

    ex. when I pressed down key (10 times) and stop pressed, then my box still rotating. but must be stoped.

    and when I have rotating whit "apply torque" speedly (set angleT value > 50000) little boxes are falling trough the walls of main box.

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