SceneBuilder.AddRigidMesh

AddRigidMesh(IMeshBuilder<MaterialBuilder>, NodeBuilder)

Adds a mesh instance to the scene, attached to an animatable NodeBuilder

public InstanceBuilder AddRigidMesh(IMeshBuilder<MaterialBuilder> mesh, NodeBuilder node)
ParameterTypeDescription
meshIMeshBuilder`1The mesh to add.
nodeNodeBuilderThe node to which the mesh will be attached.

Return Value

The instance representing this mesh-node pair.

See Also


AddRigidMesh(IMeshBuilder<MaterialBuilder>, AffineTransform)

Adds a mesh instance to the scene, at the given location.

public InstanceBuilder AddRigidMesh(IMeshBuilder<MaterialBuilder> mesh, 
    AffineTransform meshWorldTransform)
ParameterTypeDescription
meshIMeshBuilder`1The mesh to add.
meshWorldTransformAffineTransformThe location of the mesh.

Return Value

The instance representing this mesh.

Remarks

Mesh instances with a fixed transform cannot be animated, If you need morph animations, use AddRigidMesh instead.

See Also


AddRigidMesh(IMeshBuilder<MaterialBuilder>, NodeBuilder, AffineTransform)

Adds a mesh instance to the scene, at the given location, relative to the given node.

public InstanceBuilder AddRigidMesh(IMeshBuilder<MaterialBuilder> mesh, NodeBuilder node, 
    AffineTransform instanceTransform)
ParameterTypeDescription
meshIMeshBuilder`1The mesh to add.
nodeNodeBuilderThe parent node.
instanceTransformAffineTransformThe location of the mesh.

Return Value

The instance representing this mesh.

Remarks

Mesh instances with a fixed transform cannot be animated, If you need morph animations, use AddRigidMesh instead.

See Also