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
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
PhysicsJoint
chevron_left
Classes
class
PhysicsJoint
search
Properties
data_object
AngularStrength
data_object
Body1
data_object
Body2
data_object
Collisions
remove_circle
IsActive
data_object
Point1
data_object
Point2
data_object
Strength
data_object
World
Methods
functions
Remove
Static Methods
functions
CreateBallSocket
functions
CreateControl
functions
CreateFixed
functions
CreateHinge
functions
CreateLength
remove_circle
CreatePulley
functions
CreateSlider
functions
CreateSpring
functions
CreateUpright
menu
PhysicsJoint
A physics constraint.
class
Sandbox.Physics
.
Sandbox.Engine
data_object
Properties
9
AngularStrength
float
Strength of the angular constraint. If it takes any more energy than this, it'll break.
Body1
PhysicsBody
The source physics body this joint is attached to.
Body2
PhysicsBody
The target physics body this joint is constraining.
Collisions
bool
Enables or disables collisions between the 2 constrained physics bodies.
IsActive
obsolete
bool
Point1
PhysicsPoint
A specific point this joint is attached at on Sandbox.Physics.PhysicsJoint.Body1
Point2
PhysicsPoint
A specific point this joint is attached at on Sandbox.Physics.PhysicsJoint.Body2
Strength
float
Strength of the linear constraint. If it takes any more energy than this, it'll break.
World
PhysicsWorld
The Sandbox.PhysicsWorld this joint belongs to.
functions
Methods
1
Remove
(
)
Removes this joint.
functions
Static Methods
9
CreateBallSocket
(
body1
,
body2
,
origin
)
BallSocketJoint
Creates a ball socket constraint.
CreateControl
(
a
,
b
)
ControlJoint
CreateFixed
(
a
,
b
)
FixedJoint
Creates an almost solid constraint between two physics bodies.
CreateHinge
(
a
,
b
)
HingeJoint
CreateLength
(
a
,
b
,
maxLength
)
SpringJoint
Creates a constraint like a rope, where it has no minimum length but its max length is restrained.
CreatePulley
(
body1
,
body2
,
anchor1
,
ground1
,
anchor2
,
ground2
)
obsolete
PulleyJoint
CreateSlider
(
a
,
b
,
minLength
,
maxLength
)
SliderJoint
Creates a slider constraint between two physics bodies via Sandbox.Physics.PhysicsPoints.
CreateSpring
(
a
,
b
,
minLength
,
maxLength
)
SpringJoint
Creates a constraint that will try to stay the same length, like a spring, or a rod.
CreateUpright
(
a
,
b
)
UprightJoint
Inheritance
PhysicsJoint
BallSocketJoint
ControlJoint
FixedJoint
HingeJoint
PulleyJoint
SliderJoint
SpringJoint
UprightJoint
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.