载入中...
搜索中...
未找到
Steering.h
浏览该文件的文档.
40EVENGINE_API_FOUNDATION Vector2 arrive(Vector2 position, Vector2 target, float maxSpeed, float slowRadius,
43EVENGINE_API_FOUNDATION Vector3 arrive(Vector3 position, Vector3 target, float maxSpeed, float slowRadius,
51EVENGINE_API_FOUNDATION Vector2 separation(Vector2 position, std::span<const Vector2> neighbors, float radius,
58EVENGINE_API_FOUNDATION Vector3 separation(Vector3 position, std::span<const Vector3> neighbors, float radius,
66EVENGINE_API_FOUNDATION int pathTarget(Vector2 position, std::span<const Vector2> points, int current, float tolerance);
72EVENGINE_API_FOUNDATION int pathTarget(Vector3 position, std::span<const Vector3> points, int current, float tolerance);
75EVENGINE_API_FOUNDATION Vector2 avoid(Vector2 position, Vector2 velocity, Vector2 obstacle, float obstacleRadius,
78EVENGINE_API_FOUNDATION Vector3 avoid(Vector3 position, Vector3 velocity, Vector3 obstacle, float obstacleRadius,
#define EVENGINE_API_FOUNDATION_INLINE
仅供"只有内联成员"的类型使用的组宏:拥有者 dllexport,消费方不导入。
Definition Export.h:170
Definition Steering.cpp:7
Vector2 arrive(Vector2 position, Vector2 target, float maxSpeed, float slowRadius, float stopRadius)
Slows toward target inside slowRadius and stops inside stopRadius.
Definition Steering.cpp:161
Vector2 seek(Vector2 position, Vector2 target, float maxSpeed)
Returns a velocity of at most maxSpeed directed from position to target.
Definition Steering.cpp:149
Vector2 avoid(Vector2 position, Vector2 velocity, Vector2 obstacle, float obstacleRadius, float lookAhead, float maxAcceleration)
Computes avoidance acceleration away from a predicted obstacle overlap.
Definition Steering.cpp:185
Vector2 flee(Vector2 position, Vector2 target, float maxSpeed)
Returns a velocity of at most maxSpeed directed away from target.
Definition Steering.cpp:155
int pathTarget(Vector2 position, std::span< const Vector2 > points, int current, float tolerance)
Selects the current path point, advancing across points within tolerance.
Definition Steering.cpp:177
Stateless steering vector algorithms shared by 2D and 3D callers.
Definition Steering.h:17
Plain 3D value used by the stateless steering calculations.
Definition Steering.h:23