Infinite collision detection (9 posts)

  • Profile picture of villoto villoto1p said 4 months ago:

    Hello all, I have a trouble!

    When I add a GhostControl to any spatial, I can detect any collision and that is right but, if I remove the spatial from root node, then the collision is detected equally, Why??

  • Profile picture of normen normen1290p said 4 months ago:

    Because its still in the physics space?

  • Profile picture of villoto villoto1p said 4 months ago:

    But if I remove the spatial from the rootNode, I suppose the GhostControl should be removed from the physics space as does rigidBodyControl

  • Profile picture of normen normen1290p said 4 months ago:

    Why would you then have to add it first?

  • Profile picture of villoto villoto1p said 4 months ago:

    Sorry, I don’t understand you. If I want to use a ghost control, is necesary add it to some spatial or not?

  • Profile picture of normen normen1290p said 4 months ago:

    Normally you do that yes, and then, to get collisions, you do what? Its not necessary to add the control to a spatial as well as not to add it to a physics space.

  • Profile picture of villoto villoto1p said 4 months ago:

    before all that, I added a PhysicsCollisionListener to the physics space, then it detect all collisions, including the ghostcontrol collisions.

    Then, I remove the spatial that is attached to the ghostControl and I hope no more ghostcontrol collisions occur, but that is not so

  • Profile picture of normen normen1290p said 4 months ago:

    :brainsout: …remove it from the physics space.

  • Profile picture of villoto villoto1p said 4 months ago:

    Lol, ok ok I understand, this is independent of any spatial then It must be added or removed from the physics space explicity.. XD

    Thanks for your patience :)