s&
info
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
explore
Discover Games
category
Workshop
sports_esports
Games
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
menu_book
Learn
docs
Documentation
api
Api Reference
school
Tutorials
manage_search
Code Search
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
Components
Joint
chevron_left
Components
class
Joint
Constructors
lock
Joint
Properties
data_object
AnchorBody
data_object
AngularStress
data_object
Attachment
data_object
Body
data_object
Body1
data_object
Body2
data_object
BreakForce
data_object
BreakTorque
data_object
EnableCollision
data_object
IsBroken
data_object
LinearStress
data_object
LocalFrame1
data_object
LocalFrame2
data_object
Object1
data_object
Object2
data_object
OnBreak
data_object
Point1
data_object
Point2
data_object
StartBroken
Methods
functions
Break
lock
CreateJoint
lock
DestroyJoint
lock
DrawGizmos
lock
OnDestroy
lock
OnDisabled
lock
OnEnabled
lock
OnStart
functions
Unbreak
Joint
class
Sandbox
.
account_tree
extends
Component
abstract
Sandbox.Engine
build
Constructors
1
Joint
(
)
data_object
Properties
19
AnchorBody
GameObject
The body this joint is anchored to. If this is null then it will use the current GameObject as the anchor.
AngularStress
float
Current angular stress applied to the joint.
Attachment
AttachmentMode
Are local frames calculated automatically or set manually. See Sandbox.Joint.LocalFrame1, Sandbox.Joint.LocalFrame2
Body
GameObject
Game object to find the body to attach this joint to.
Body1
PhysicsBody
The source physics body this joint is attached to.
Body2
PhysicsBody
The target physics body this joint is constraining.
BreakForce
float
Strength of the linear constraint. If it takes any more energy than this, it'll break.
BreakTorque
float
Strength of the angular constraint. If it takes any more energy than this, it'll break.
EnableCollision
bool
Enable or disable collision between the two bodies.
IsBroken
bool
Is the joint currently broken and inactive.
LinearStress
float
Current linear stress applied to the joint.
LocalFrame1
Transform
Only used on joint creation. See Sandbox.Joint.AttachmentMode.LocalFrames
LocalFrame2
Transform
Only used on joint creation. See Sandbox.Joint.AttachmentMode.LocalFrames
Object1
GameObject
The source GameObject we're connected to
Object2
GameObject
The target GameObject we're connected to
OnBreak
Action
Called when the joint breaks.
Point1
PhysicsPoint
A specific point this joint is attached at on Sandbox.Joint.Body1
Point2
PhysicsPoint
A specific point this joint is attached at on Sandbox.Joint.Body2
StartBroken
bool
Is the joint broken on start.
functions
Methods
9
Break
(
)
CreateJoint
(
point1
,
point2
)
PhysicsJoint
Joint type implementation.
DestroyJoint
(
)
DrawGizmos
(
)
OnDestroy
(
)
OnDisabled
(
)
OnEnabled
(
)
OnStart
(
)
Unbreak
(
)
Inheritance
Component
Joint
BallJoint
ControlJoint
FixedJoint
HingeJoint
SliderJoint
SpringJoint
UprightJoint
WheelJoint
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.