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

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.

主站蜘蛛池模板: 南通市| 荆门市| 武隆县| 舒兰市| 涪陵区| 渝北区| 虎林市| 瑞丽市| 颍上县| 吉隆县| 九江县| 峨边| 普宁市| 锡林郭勒盟| 柳江县| 呼图壁县| 许昌县| 定边县| 无极县| 临清市| 改则县| 肥东县| 楚雄市| 乌拉特中旗| 博罗县| 江油市| 阳高县| 临颍县| 南康市| 镇江市| 原阳县| 白玉县| 峨眉山市| 清水县| 民勤县| 修武县| 吴桥县| 西青区| 融水| 横山县| 武威市|