s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Classes
HingeJointBuilder
chevron_left
Classes
class
HingeJointBuilder
Properties
data_object
DampingRatio
data_object
EnableMotor
data_object
EnableTwistLimit
data_object
Frequency
data_object
Friction
data_object
MaxTorque
data_object
Motor
data_object
TargetAngle
data_object
TargetVelocity
data_object
TwistLimit
Methods
functions
WithDampingRatio
functions
WithFrequency
functions
WithFriction
functions
WithMaxTorque
functions
WithTargetAngle
functions
WithTargetVelocity
functions
WithTwistLimit
HingeJointBuilder
Builds a hinge joint that rotates around one axis.
class
Sandbox
.
account_tree
extends
PhysicsJointBuilder
sealed
Sandbox.Engine
data_object
Properties
10
DampingRatio
float
Spring motor damping ratio.
EnableMotor
bool
Whether the hinge's angular motor is enabled.
EnableTwistLimit
bool
Whether the hinge enforces a twist angle limit.
Frequency
float
Spring motor frequency in hertz.
Friction
float
Component-style friction, used when the motor is disabled.
MaxTorque
float
Maximum torque the velocity motor may apply.
Motor
MotorMode
The motor mode, matching the hinge component.
TargetAngle
float
Spring motor target angle in degrees.
TargetVelocity
Vector3
World angular velocity for the motor, in radians per second.
TwistLimit
Vector2
The minimum and maximum allowed twist angles (degrees).
functions
Methods
7
WithDampingRatio
(
v
)
HingeJointBuilder
WithFrequency
(
v
)
HingeJointBuilder
WithFriction
(
v
)
HingeJointBuilder
Sets friction and disables the motor.
WithMaxTorque
(
v
)
HingeJointBuilder
WithTargetAngle
(
angle
)
HingeJointBuilder
Sets and enables the target-angle spring motor.
WithTargetVelocity
(
v
)
HingeJointBuilder
Sets the target angular velocity and enables the motor.
WithTwistLimit
(
min
,
max
)
HingeJointBuilder
Sets and enables the twist angle limits.
Inheritance
PhysicsJointBuilder
HingeJointBuilder
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.