SimApi Physics GetTerrainMaterialIndex

From SIMboxWiki
Jump to navigation Jump to search

Icon attributes.pngstatic NxU16 SimApi::Physics::GetTerrainMaterialIndex()

    Description

    Returns the material index values for the terrain actor.

    Return

    Type: NxU16   Description: The index of the material used for the terrain.

    Remarks
    



    Code Sample
    

NxU16 materialIndex = SimApi::Physics::GetTerrainMaterialIndex();
NxMaterial * pTerrainMaterial;
pTerrainMaterial = SimApi::Physics::GetPhysicsScene()->getMaterialFromIndex(materialIndex);


    See Also

    SimApi Physics