class SpringJoint : PhysicsJoint

book_4_sparkGenerated
code_blocksInput

Description

The SpringJoint class in the Sandbox.Physics namespace represents a rope-like constraint that exhibits springy or bouncy behavior. It is a type of PhysicsJoint used to simulate spring dynamics in a physics environment.

Members

Instance Properties

Member NameSummary
SpringLinearHow springy and tight the joint will be.
MaxLengthMaximum length it should be allowed to go.
MinLengthMinimum length it should be allowed to go. At which point it acts a bit like a rod.
ReferenceMassYou shouldn't really ever need to change this, the default works out what the reference mass should be based on actual physics.