![]() |
Atoms Crowd
7.0.0
|
Animation clip. More...
#include <Locomotion.h>
Public Member Functions | |
| Locomotion () | |
| Constructor. | |
| ~Locomotion () | |
| Destructor. | |
| unsigned int | numLocomotionClips () const |
| unsigned int | numTriangles () const |
| void | addAnimationClip (const std::string &clipName, const AtomsCore::Vector2 coords, const int inBlend, const int outBlend, const bool disableDirectionBlending, const bool unsynced, const int waitFrames) |
| Add a new clip. | |
| void | buildTriangles (const LocomotionSort xSort=LocomotionSort::kGreater, const LocomotionSort ySort=LocomotionSort::kLess, const float eps=1e-4) |
| builds the triangles for this locomotion system | |
| const LocomotionClip & | getClip (unsigned int index) const |
| Gets a locomotion clip. | |
| const AtomsUtils::Triangle2 & | getTriangle (unsigned int index) const |
| Gets a locomotion triangle. | |
| void | addTriangle (const unsigned int p0Id, const unsigned int p1Id, const unsigned int p2Id) |
| adds a triangle | |
| void | clearTriangles () |
| clears all triangles | |
| std::vector< AtomsUtils::Triangle2 > | getTriangles () const |
| get a copy of all triangles | |
| std::vector< AtomsUtils::Triangle2 > | getTrianglesWithoutUnsync () const |
| get all triangles without the sync clips | |
Animation clip.