Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

JointSpring

Description

JointSpring is used add a spring force to HingeJoint and PhysicMaterial.

Variables

damperThe damper force uses to dampen the spring.
springThe spring forces used to reach the target position.
targetPositionThe target position the joint attempts to reach.