官术网_书友最值得收藏!

Agents' movement

As all agents within the sandbox are automatically simulated through the physics system, it's time to get acquainted with some basic Newtonian physics.

Mass

The mass of an agent comes into play when colliding with other objects and is based on how much the agent should accelerate based on the forces applied to the agent. All mass calculations within the sandbox occur in kilograms.

Speed

Speed defines how fast an agent is moving without considering the direction the agent is moving in. All speed values within the sandbox will be measured in meters per second and signify the magnitude of the velocity vector.

Velocity

Velocity, on the other hand, is both the speed and direction the agent is moving in. It is measured in meters per second and is represented as a vector.

Acceleration

Acceleration within the sandbox is always measured in meters per second squared and represents the change in the velocity of an agent.

Force

Force plays a large part when moving agents around and is measured in Newtons:

Newtons = kilograms * meters / second 2

Whenever a force is applied to an object, the object will either accelerate or decelerate based on the objects mass.

It is important to understand the values the sandbox works with to gain an intuitive understanding about values such as speed, distance, and mass.

主站蜘蛛池模板: 新密市| 海盐县| 定州市| 安新县| 临清市| 凤庆县| 西宁市| 新乐市| 伊通| 新巴尔虎左旗| 班戈县| 晋中市| 黎平县| 汉中市| 冕宁县| 剑川县| 老河口市| 昌乐县| 巨野县| 虹口区| 仪征市| 通州市| 唐山市| 大关县| 民权县| 新密市| 阿拉善盟| 吉首市| 宁阳县| 杭锦后旗| 屏东县| 新丰县| 汽车| 五家渠市| 高州市| 伊金霍洛旗| 黎平县| 林口县| 名山县| 新郑市| 清远市|