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

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.

主站蜘蛛池模板: 宜章县| 寿阳县| 瑞昌市| 青田县| 青浦区| 平凉市| 九龙县| 四平市| 治多县| 闽侯县| 图片| 北安市| 蒙山县| 馆陶县| 弥渡县| 久治县| 任丘市| 肥乡县| 龙游县| 东方市| 巫溪县| 固安县| 潞西市| 灌南县| 汤原县| 淮南市| 杭锦后旗| 灌南县| 类乌齐县| 老河口市| 镇巴县| 涪陵区| 右玉县| 安宁市| 宁南县| 遂溪县| 潼关县| 广德县| 红原县| 来安县| 凤山市|