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
SliderJoint
chevron_left
Classes
class
SliderJoint
Properties
data_object
Friction
data_object
MaxLength
data_object
MinLength
Methods
functions
SetLinearMotor
functions
SetTargetPosition
SliderJoint
A slider constraint, basically allows movement only on the arbitrary axis between the 2 constrained objects on creation.
class
Sandbox.Physics
.
account_tree
extends
PhysicsJoint
Sandbox.Engine
data_object
Properties
3
Friction
float
Slider friction.
MaxLength
float
Maximum length it should be allowed to go
MinLength
float
Minimum length it should be allowed to go
functions
Methods
2
SetLinearMotor
(
targetVelocity
,
maxForce
)
Sets and enables a linear velocity motor, in units per second.
SetTargetPosition
(
position
,
frequency
,
dampingRatio
)
Sets and enables a position spring motor.
Inheritance
PhysicsJoint
SliderJoint
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.