| PathEngine home | previous: | next: |
Post process path smoothing.
Returns a new path based on a 'base path',
but with corners smoothed according to supplied parameters.
iPath* generateCurvedPath(iPath* basePath, const iCollisionContext* context, tSigned32 startVectorX, tSigned32 startVectorY, tSigned32 sectionLength, float turnRatio1, float turnRatio2) const; |
| basePath | A straight line path from which to generate the curved path. | ||
| context |
The state of dynamic collision that will apply for this query. An empty context can be specified by passing a value of zero for this argument. Note that the agent is not considered to obstruct itself even if included in this context. | ||
| startVectorX |
X component of a start vector to incorporate into the curved path. Must be in the range -1500000 to 1500000. | ||
| startVectorY |
Y component of a start vector to incorporate into the curved path. Must be in the range -1500000 to 1500000. | ||
| sectionLength | Desired minimum section length for the curved path. | ||
| turnRatio1 | Desired maximum turn angle for a first pass, specified as a ratio. | ||
| turnRatio2 | Desired maximum turn angle for a second pass, specified as a ratio. |
Requires that the agent is moveable and that collision preprocess has been generated on the agent's mesh for the agent's collision shape.
Legacy version of
Equivalent to calling that method with both end vector parameters set to zero.
| Documentation for PathEngine release 5.18 - Copyright © 2002-2008 PathEngine | next: |