Atoms Crowd  4.1.0
Atoms::Locomotion Class Reference

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)
 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 LocomotionClipgetClip (unsigned int index) const
 Gets a locomotion clip.
 
const AtomsUtils::Triangle2getTriangle (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::Triangle2getTriangles () const
 get a copy of all triangles
 

Detailed Description

Animation clip.


The documentation for this class was generated from the following file: