Enabling and disabling an object

edited October 2012 in Help request
What does disabling an object do? Does that stop it from being rendered, or from being updated? (or both?)

Comments

  • edited October 2012
    I just tried it.

    orxObject_Enable(myObject, orxFALSE);

    This seems to stops the rendering (becomes invisible), and you can't affect it with orxObject commands anymore.

    orxObject_Enable(myObject, orxTRUE);

    Brings it back and it becomes responsive to orxObject commands again.

    An interesting note... the physics body remains behind and physics are still triggered with it. So I guess attached bodies would still need to be manually disabled as well.
  • edited October 2012
    Cool. Thanks for your help!
  • edited October 2012
    Ah yep, sausage's right, the physics body should probably be deactivated/activated. Would you mind opening an issue about it on http://code.orx-project.org/orx ? :D
  • edited October 2012
    Issue created. I didn't see the reply until today, sorry. :P
  • edited October 2012
    Thanks and no worries for the delay.

    Also, if you create an issue while logged in, you'll get notified of any updates (like when it gets resolved).

    Should be fixed. :)
Sign In or Register to comment.