MeshInstance

    Inherited By:

    Category: Core

    Node that instances meshes into a scenario.

    Properties

    Description

    The resource for the instance.


    to the Skeleton associated with the instance.

    Method Descriptions

    • void create_convex_collision ( )

    This helper creates a child node with a ConvexPolygonShape collision shape calculated from the mesh geometry. It’s mainly used for testing.



    • void create_trimesh_collision ( )

    This helper creates a child node with a ConcavePolygonShape collision shape calculated from the mesh geometry. It’s mainly used for testing.


    • get_surface_material ( int surface ) const

    Returns the for a surface of the Mesh resource.


    • get_surface_material_count ( ) const

    Returns the number of surface materials.


    • void set_surface_material ( int surface, material )