Physics behavior

This forum is currently in read-only mode.
From the Asset Store
Simple yet very life-like rag doll made with Physics!
  • The size (or at least scale) of a sprite seems to have a direct effect on how much of an effect a given Force has.

    Does anyone know the formula being used to calculate acceleration based on force and how it interacts with sprites? (Specifically Linear dampening, Apply Force towards point, and mass).

    Is it mass-per-pixel by chance?

    Other note; I'm using Ellipse collision mask.

    *edit* one more question.

    How is the ellipse generated? is it circumscribed within the bounding box of the sprite?

  • IIRC (David should be able to confirm) the mass of an object is proportional to its size. Therefore bigger objects require more force. If you're using a custom collision mask, it depends on the area inside the polygon.

    I'm not sure this is the best way to do it, actually. It doesn't seem to make sense saying "Mass = 1" then having that change if you stretch the object...

    And yes, if you use an ellipse, it'll have the same with/height as the bounding box.

  • Yes, the mass is proportionate to the area of the collision box used (so the size of the ellipse, the mass of the area of all the polygons if it's a custom mask).

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So then actual mass is Collision Mass Area * Mass ?

  • Yes.

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