载入中...
搜索中...
未找到
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()

virtual eve::vehicle::IVehicleMobility::~IVehicleMobility ( )
virtualdefault

Releases IVehicleMobility resources.

成员函数说明

◆ name()

virtual const char * eve::vehicle::IVehicleMobility::name ( ) const
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.

被这些函数引用 eve::vehicle::VehicleSystem::registerMobility().

◆ update()

virtual void eve::vehicle::IVehicleMobility::update ( VehicleEntity &  v,
float  dt 
)
pure virtual

每帧推进:把 v.input() 转成 v.motion() 的变化。

被这些函数引用 eve::vehicle::VehicleSystem::update().


该类的文档由以下文件生成: