Physics sleep

0 favourites
  • 5 posts
From the Asset Store
Simple yet very life-like rag doll made with Physics!
  • An physics object with immovable set to yes can't have sleep value of true?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • bump?

  • If you can explain it a little better, you might get a better answer..

    What is a sleep value?

    What would you like to do?

    What is happening and what did you expect to happen?

    With the answers to these questions it would be much easier to help..

  • From manual:

    [quote:1hqrupal]Is sleeping

    True if the object has been at rest and not moved or been disturbed for a while, so that the physics engine can stop processing it. Note objects can still be moving imperceptibly which can prevent them from being asleep even when they appear to be stopped.

    Is a physics object with Immovable set to yes, always "awake" and taking up resources or is immovable equal to sleep. When I check in the debugger sleep is always set to false on my immovable objects.

  • I'm not sure, but I think it isn't that important anyway..

    An immovable object doesn't need as much processing as a moving object..

    Only collisions with it are important, for it doesn't react to forces anyway..

    A sleeping object still reacts to collisions and probably the "is sleeping" will be turned of immediately on collision..

    So in a matter of speaking you could say an immovable object is always sleeping, but always awake is actually the same, for the calculations when awake or sleeping should be the same for an immovable object..

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