s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejams
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Classes
HingeJointBuilder
chevron_left Classes
class
HingeJointBuilder

Properties

data_objectDampingRatiodata_objectEnableMotordata_objectEnableTwistLimitdata_objectFrequencydata_objectFrictiondata_objectMaxTorquedata_objectMotordata_objectTargetAngledata_objectTargetVelocitydata_objectTwistLimit

Methods

functionsWithDampingRatiofunctionsWithFrequencyfunctionsWithFrictionfunctionsWithMaxTorquefunctionsWithTargetAnglefunctionsWithTargetVelocityfunctionsWithTwistLimit
HingeJointBuilder
Builds a hinge joint that rotates around one axis.
class Sandbox .account_tree extends PhysicsJointBuilder
sealedSandbox.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.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter