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
PhysicsShape
chevron_left
Classes
class
PhysicsShape
search
Properties
data_object
Body
data_object
Capsule
data_object
Collider
data_object
EnableSolidCollisions
data_object
EnableTouch
data_object
EnableTouchPersists
data_object
Friction
data_object
IsCapsuleShape
data_object
IsHeightfieldShape
data_object
IsHullShape
data_object
IsMeshShape
data_object
IsSphereShape
data_object
IsTrigger
remove_circle
Scale
data_object
Sphere
data_object
Surface
data_object
SurfaceMaterial
data_object
Surfaces
data_object
SurfaceVelocity
data_object
Tags
Methods
remove_circle
AddTag
remove_circle
ClearTags
functions
DisableAllCollision
functions
EnableAllCollision
remove_circle
HasTag
functions
Remove
remove_circle
RemoveTag
functions
Triangulate
functions
UpdateHull
functions
UpdateMesh
PhysicsShape
Represents a basic, convex shape. A <see cref="T:Sandbox.PhysicsBody">PhysicsBody</see> consists of one or more of these.
class
Sandbox
.
sealed
Sandbox.Engine
data_object
Properties
20
Body
PhysicsBody
The physics body we belong to.
Capsule
Capsule
Get capsule properties if we're a capsule type
Collider
Collider
The collider object that created / owns this shape
EnableSolidCollisions
bool
Controls whether this shape has solid collisions.
EnableTouch
bool
Controls whether this shape can fire touch events for its owning entity. (Entity.StartTouch, Touch and EndTouch)
EnableTouchPersists
bool
Controls whether this shape can fire continuous touch events for its owning entity (i.e. calling Entity.Touch every frame)
Friction
float
The friction value
IsCapsuleShape
bool
Is this a CapsuleShape
IsHeightfieldShape
bool
Is this a HeightfieldShape
IsHullShape
bool
Is this a HullShape
IsMeshShape
bool
Is this a MeshShape
IsSphereShape
bool
Is this a SphereShape
IsTrigger
bool
This is a trigger (!)
Scale
obsolete
Vector3
Sphere
Sphere
Get sphere properties if we're a sphere type
Surface
Surface
SurfaceMaterial
string
Controls physical properties of this shape.
Surfaces
Surface[]
Multiple surfaces referenced by mesh or heightfield collision.
SurfaceVelocity
Vector3
Set the local velocity of the surface so things can slide along it, like a conveyor belt
Tags
ITagSet
functions
Methods
10
AddTag
(
tag
)
obsolete
bool
Add a tag to this shape.
ClearTags
(
)
obsolete
bool
Clear all tags from this shape.
DisableAllCollision
(
)
Disable contact, trace and touch
EnableAllCollision
(
)
Enable contact, trace and touch
HasTag
(
tag
)
obsolete
bool
Does this shape have a specific tag?
Remove
(
)
Remove this shape. After calling this the shape should be considered released and not used again.
RemoveTag
(
tag
)
obsolete
bool
Remove a tag from this shape.
Triangulate
(
positions
,
indices
)
Triangulate this shape.
UpdateHull
(
position
,
rotation
,
points
)
UpdateMesh
(
vertices
,
indices
)
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.