s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Classes
ModelBuilder
chevron_left
Classes
class
ModelBuilder
search
Constructors
functions
ModelBuilder
Methods
functions
AddAnimation
functions
AddAttachment
functions
AddBallJoint
functions
AddBody
functions
AddBone
functions
AddBones
functions
AddCollisionBox
functions
AddCollisionCapsule
functions
AddCollisionHull
functions
AddCollisionMesh
functions
AddCollisionSphere
functions
AddFixedJoint
functions
AddHingeJoint
functions
AddMaterialGroup
functions
AddMesh
functions
AddMeshes
functions
AddSliderJoint
functions
AddSurface
functions
AddTraceMesh
functions
Create
functions
WithLodDistance
functions
WithMass
functions
WithName
functions
WithSurface
ModelBuilder
Provides ability to generate Sandbox.Models at runtime. A static instance of this class is available at Sandbox.Model.Builder
class
Sandbox
.
sealed
Sandbox.Engine
build
Constructors
1
ModelBuilder
(
)
functions
Methods
24
AddAnimation
(
name
,
frameRate
)
AnimationBuilder
Adds an animation to this model and returns a builder to construct the animation.
AddAttachment
(
name
,
position
,
rotation
,
parentName
)
ModelBuilder
Add an attachment to the skeleton.
AddBallJoint
(
body1
,
body2
,
frame1
,
frame2
,
collision
)
BallJointBuilder
AddBody
(
mass
,
surface
,
boneName
)
PhysicsBodyBuilder
Adds a new physics body to this object.
AddBone
(
bone
)
Add a bone to the skeleton via a Sandbox.ModelBuilder.Bone struct.
AddBones
(
bones
)
Add multiple bones to the skeleton.
AddCollisionBox
(
extents
,
center
,
rotation
)
ModelBuilder
AddCollisionCapsule
(
center0
,
center1
,
radius
)
ModelBuilder
Add capsule collision shape.
AddCollisionHull
(
vertices
,
center
,
rotation
)
ModelBuilder
AddCollisionMesh
(
vertices
,
indices
)
ModelBuilder
AddCollisionSphere
(
radius
,
center
)
ModelBuilder
Add sphere collision shape.
AddFixedJoint
(
body1
,
body2
,
frame1
,
frame2
,
collision
)
FixedJointBuilder
AddHingeJoint
(
body1
,
body2
,
frame1
,
frame2
,
collision
)
HingeJointBuilder
AddMaterialGroup
(
name
)
MaterialGroupBuilder
Add a named material group builder.
AddMesh
(
mesh
)
ModelBuilder
Add a mesh.
AddMeshes
(
meshes
)
ModelBuilder
Add a bunch of meshes.
AddSliderJoint
(
body1
,
body2
,
frame1
,
frame2
,
collision
)
SliderJointBuilder
AddSurface
(
surface
)
ModelBuilder
AddTraceMesh
(
vertices
,
indices
)
ModelBuilder
Create
(
)
Model
Finish creation of the model.
WithLodDistance
(
lod
,
distance
)
ModelBuilder
LOD switch distance increment for each Level of Detail (LOD) level. (Default is 50)
WithMass
(
mass
)
ModelBuilder
Total mass of the physics body (Default is 1000)
WithName
(
name
)
ModelBuilder
Provide a name to identify the model by
WithSurface
(
name
)
ModelBuilder
Surface property to use for collision
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.