- _meshChanged
void _meshChanged()
- createConvexCollision
void createConvexCollision()
This helper creates a StaticBody child node with a ConvexPolygonShape collision shape calculated from the mesh geometry. It's mainly used for testing.
- createDebugTangents
void createDebugTangents()
This helper creates a MeshInstance child node with gizmos at every vertex calculated from the mesh geometry. It's mainly used for testing.
- createTrimeshCollision
void createTrimeshCollision()
This helper creates a StaticBody child node with a ConcavePolygonShape collision shape calculated from the mesh geometry. It's mainly used for testing.
- getMesh
Ref!Mesh getMesh()
- getSkeletonPath
NodePath getSkeletonPath()
- getSurfaceMaterial
Ref!Material getSurfaceMaterial(long surface)
- getSurfaceMaterialCount
long getSurfaceMaterialCount()
- opAssign
MeshInstance opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(MeshInstance other)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
- setMesh
void setMesh(Mesh mesh)
- setSkeletonPath
void setSkeletonPath(NodePathArg0 skeleton_path)
- setSurfaceMaterial
void setSurfaceMaterial(long surface, Material material)
Node that instances meshes into a scenario.
MeshInstance is a node that takes a Mesh resource and adds it to the current scenario by creating an instance of it. This is the class most often used to get 3D geometry rendered and can be used to instance a single Mesh in many places. This allows to reuse geometry and save on resources. When a Mesh has to be instanced more than thousands of times at close proximity, consider using a MultiMesh in a MultiMeshInstance instead.