Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

JointSpring

struct in UnityEngine

/

Implemented in:UnityEngine.PhysicsModule

Description

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

no example available in C#

Properties

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.

Did you find this page useful? Please give it a rating: