用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:frictionjoint2d:frictionjoint2d

FrictionJoint2D 2D摩擦力关节

class in UnityEngine/Inherits from: AnchoredJoint2D

Description 描述

Applies both force and torque to reduce both the linear and angular velocities to zero.

适用于力和扭矩去减少线性和角速度直至为0。

The joint constantly tries to reduce both the ::Rigidbody2D::velocity and ::Rigidbody2D::angularVelocity to zero. Unlike contact friction which requires two colliders to be in contact, force and torque here are applied continuously.

该关节不断尝试减少2D刚体的线性速度和角速度直至为零。不像接触摩擦力需要两个碰撞体需要接触,这儿力和扭矩被不断应用。

You can control both the maximum force using maxForce and maximum torque using maxTorque. Because you can use very high force or torque limits, you can essentially reduce an objects movement to almost zero.

你可以使用maxForce控制最大力和用maxTorque控制最大扭矩。因为你可以使用非常大的力或扭矩限制它,你可以减少物体的移动使之接近零。

A typical usage for this joint might be to simulate top-down surface friction or to simulate stiff rotation of an object.

该关节的典型用法可能是模拟自上而下的表面摩擦或者模拟角色僵硬的旋转。

Variables 变量

maxForceThe maximum force that can be generated when trying to maintain the friction joint constraint.
当试图保持摩擦关节约束条件所能达到的最大力。
maxTorqueThe maximum torque that can be generated when trying to maintain the friction joint constraint.
当你尝试保持最大摩擦关节的约束时可以产生的最大扭矩。
script/unityengine/classes/frictionjoint2d/frictionjoint2d.txt · 最后更改: 2016/08/02 05:35 (外部编辑)