|PathEngine home||previous: ||next: |
Intended for use when building content. Associates a position and orientation with a string ID.
void storeAnchor(const char* id, const cPosition& position, int32_t orientation);
A unique anchor ID for the given position.|
This pointer is not retained after the method exits and may subsequently be safely deleted.
This must be a valid |
Orientation for the anchor, represented as an integer.|
If you attempt to use the same ID twice then a non-fatal error will be emitted and no anchor stored.
If you pass in an explicitly invalid position then a non-fatal error will be emitted and the position not stored.
Anchors are saved out with the mesh when you call
This means that you can resolve positions in your world editor. Report any errors in position resolution directly to your content creators at this stage. Then lookup the positions with
The Max exporter plugin does this.
void storeAnchor(string id, PathEngine.Position position, int orientation);
void storeAnchor(String id, Position position, int orientation);
|Documentation for PathEngine release 6.03 - Copyright © 2002-2021 PathEngine||next: |