返回介绍

ConstantForce 恒力

发布于 2019-12-18 15:37:37 字数 1863 浏览 815 评论 0 收藏 0

class in UnityEngine/Inherits from: Behaviour

Description 描述

A force applied constantly.

一个不断施加的恒力。

This is a small physics utility class used to apply a continous force to an object.

这是一个小的物理实用类,用于给物体施加恒力。

Rigidbody.AddForce applies a force to the Rigidbody only for one frame, thus you have to keep calling the function. ConstantForce on the other hand will apply the force every frame until you change the force or torque to a new value.

Rigidbody.AddForce仅在一帧给刚体施加一个力,因此你需要一直调用该函数。ConstantForce在另一方面将会在每帧施加该力到物体直到改变该力或者转矩一个新的值。

See Also: Rigidbody.

Variables 变量

forceThe force applied to the rigidbody every frame.
该力每帧都施加于刚体上。
relativeForceThe force - relative to the rigid bodies coordinate system - applied every frame.
该力相对于刚体的坐标系统应用于每帧。
relativeTorqueThe torque - relative to the rigid bodies coordinate system - applied every frame.
该转矩相对于刚体的坐标系统应用于每帧。
torqueThe torque applied to the rigidbody every frame.
该转矩每帧都用于刚体上。

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文