Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • 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

damper The damper force uses to dampen the spring.
spring The spring forces used to reach the target position.
targetPosition The target position the joint attempts to reach.