载入中...
搜索中...
未找到
eve::vehicle::IVehicleMobility类 参考abstract
移动模型:读输入、更新运动状态。 更多...
#include <VehicleMobility.h>
Public 成员函数 | |
| virtual | ~IVehicleMobility ()=default |
| Releases IVehicleMobility resources. | |
| virtual const char * | name () const =0 |
| 稳定名字("kinematic" / "wheel" / "track" / "hover" / ...)。 | |
| virtual void | update (VehicleEntity &v, float dt)=0 |
| 每帧推进:把 v.input() 转成 v.motion() 的变化。 | |
详细描述
移动模型:读输入、更新运动状态。
在文件 VehicleMobility.h 第 17 行定义.
构造及析构函数说明
◆ ~IVehicleMobility()
|
virtualdefault |
Releases IVehicleMobility resources.
成员函数说明
◆ name()
|
pure virtual |
稳定名字("kinematic" / "wheel" / "track" / "hover" / ...)。
- 返回
- Borrowed non-null pointer to immutable provider-owned/static text. @ownership The mobility implementation owns the storage; callers must not free it. @lifetime Valid while the implementation is registered; copy the text if retaining it. @thread Query on the registry/vehicle thread unless the implementation documents a broader guarantee. @reentrancy This accessor must not invoke callbacks or mutate the registry.
◆ update()
|
pure virtual |
每帧推进:把 v.input() 转成 v.motion() 的变化。
该类的文档由以下文件生成:
- src/modules/vehicle/VehicleMobility.h