用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:springjoint:springjoint

SpringJoint 弹性关节

class in UnityEngine/Inherits from: Joint

Description 描述

The spring joint ties together 2 rigid bodies, spring forces will be automatically applied to keep the object at the given distance.

弹力关节连接两个刚体到一起,弹力将会被自动应用于对象去保持指定距离。

The Spring attempts to maintain the distance it has when it starts out. So if your joint's start at a rest position where the two rigidbodies are far apart, then the joint will attempt to maintain that distance. The minDistance and maxDistance properties add on top of this implicit distance.

当他开始时,该弹力尝试去保持距离。如果你的关节的开始在静止位置,那么关节将会尝试去维持该距离。minDistance和maxDistance属性添加这个隐含的距离。

Variables 变量

damperThe damper force used to dampen the spring force.
阻尼器力用于去阻碍弹力。
maxDistanceThe maximum distance between the bodies relative to their initial distance.
相对于他们主体之间的最初距离的最大距离。
minDistanceThe minimum distance between the bodies relative to their initial distance.
主体相对于他们最初距离的最小距离。
springThe spring force used to keep the two objects together.
该弹力用于保持两个对象在一起。
toleranceThe maximum allowed error between the current spring length and the length defined by minDistance and maxDistance.
当前弹性长度和通过定义的最大据悉和最小距离之间的长度之间允许的最小错误。
script/unityengine/classes/springjoint/springjoint.txt · 最后更改: 2016/08/02 05:25 (外部编辑)