"Unity" 11.6 constant (Constant force)

Source: Internet
Author: User

Categories: Unity, C #, VS2015

Date Created: 2016-05-02 I. INTRODUCTION

Constant forces (Constant force) are quick utilities for adding constant force to a rigid body (rigidbody), for objects such as rockets, which are not very fast at first but are accelerating.

This is ideal if you do not want a single launch object (such as a rocket) to start at a larger rate but want to speed up slowly.

is a rocket propelled forward by constant force (Constant forces):

Second, related attributes

1, Force (Power)

A vector of forces applied in the world coordinate space. Sets the force used in the world coordinate system, expressed as a vector.

2. Relative force (Relative strength)

A vector of forces applied in the object's local coordinate space.

3, Torque (torque)

The vector of the torque applied in the world coordinate space. The object rotates around this vector. The longer the vector, the faster the rotation will be.

4, Relative Torque (relative torque)

The vector of the torque applied in the local coordinate space. The object rotates around this vector. The longer the vector, the faster the rotation will be. Third, detailed information

To create a forward-accelerating rocket, set the relative force (Relative forces) along the positive z-axis. The Resistance (Drag) property of the rigid body (rigidbody) is then used so that it does not exceed a certain maximum rate (the greater the resistance, the lower the maximum rate). In a rigid body (rigidbody), it is also necessary to ensure that gravity is turned off so that the rocket remains on its path. Iv. Use of skills

(1) To make the object flow upward, add a force property with a constant force of positive Y-values (Constant forces).

(2) To make the object fly forward, add a constant force (Constant forces) with a positive Z-value for the relative force (Relative forces) property.

"Unity" 11.6 constant (Constant force)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.