SimApi Physics GetPhysicsScene

From SIMboxWiki
Jump to navigation Jump to search



Icon attributes.pngstatic NxScene* SimApi::Physics::GetPhysicsScene()

    Description

    Returns a pointer to the current physical scene. If not exists, creates one.

    Return

    Type: NxScene *   Description: A pointer to the current physical scene. If not exists, creates one.

    Remarks
    



    Code Sample
    

NxScene* pTheScene = SimApi::Physics::GetPhysicsScene();
int nbOfActors = pTheScene->getNbActors(); // get the number of actors


    See Also

    SimApi Physics