EXC_BAD_ACCESS

  • avante2500
    Likes 0

    Problem Description

    Hi, why i got error when i added the physics body ?
    void PhysicsBody::addToPhysicsWorld() { if (_owner) { auto scene = _owner->getScene();
    if (scene) scene->getPhysicsWorld()->addBody(this); ////here EXC_BAD_ACCESS } }

  • Sonar Systems admin
    Likes 0

    Can you show us a screenshot of the problem


    This reply has been verified.
  • avante2500
    Likes 0

    Thanks i fixed it forgot to add createWithPhysics

  • Sonar Systems admin
    Likes 0

    Good to hear, feel free to post any more questions you have on your game development journey.

Login to reply