- Learning Game AI Programming with Lua
- David Young
- 225字
- 2021-08-05 17:02:14
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.
- Hands-On Machine Learning with Microsoft Excel 2019
- Live Longer with AI
- 數據庫應用基礎教程(Visual FoxPro 9.0)
- Hadoop大數據實戰權威指南(第2版)
- 數據架構與商業智能
- 基于Apache CXF構建SOA應用
- 淘寶、天貓電商數據分析與挖掘實戰(第2版)
- Web Services Testing with soapUI
- SQL Server 2008寶典(第2版)
- 區塊鏈應用開發指南:業務場景剖析與實戰
- 基于數據發布的隱私保護模型研究
- 數據分析方法及應用:基于SPSS和EXCEL環境
- 數據庫應用技術
- 創新求索錄:第二集(精裝版)
- 21天學通Oracle(第2版)