class ModelBuilder

book_4_sparkGenerated
code_blocksInput

Description

The ModelBuilder class in the Sandbox namespace provides functionality to generate Model objects at runtime. It offers a fluent interface to configure various aspects of a model, such as mass, surface properties, and collision shapes. A static instance of this class is available at Model.Builder.

Members

Instance Methods

Member NameSummary
WithMassSets the mass of the model.
WithSurfaceDefines the surface properties of the model.
WithLodDistanceConfigures the level of detail (LOD) distance for the model.
AddCollisionBoxAdds a collision box to the model.
AddCollisionSphereAdds a collision sphere to the model.
AddCollisionCapsuleAdds a collision capsule to the model.
AddCollisionHullAdds a collision hull to the model using specified vertices.
AddCollisionMeshAdds a collision mesh to the model using specified vertices and indices.
AddMeshAdds a mesh to the model.
AddMeshesAdds multiple meshes to the model.
AddBoneAdds a bone to the model.
AddBonesAdds multiple bones to the model.
CreateFinish creation of the model.