AnimEngine
Public Member Functions | Protected Attributes | List of all members
FollowCamera Class Reference
Inheritance diagram for FollowCamera:
Inheritance graph
[legend]
Collaboration diagram for FollowCamera:
Collaboration graph
[legend]

Public Member Functions

 FollowCamera (float fov, vec3 start_pos, float linear_acceleration_factor=3.0f, float base_velocity_factor=.6f, float follow_distance=2.0f, float distance_exponent=2.0f)
 
virtual void follow_explicit (double frametime, vec3 target, vec3 offset, vec3 viewtarget, float linear_acceleration_parameter, float base_velocity_parameter, float follow_distance_parameter, float distance_exponent_parameter)
 
virtual void follow (double frametime, vec3 target, vec3 offset, vec3 viewtarget)
 
virtual void reset (const vec3 &start_pos)
 
virtual glm::mat4 getView () const
 
virtual vec3 getViewDir () const
 
float getMaximumDistance () const
 
void setMaximumDistance (float max_distance)
 
float getAccelerationFactor ()
 
void setAccelerationFactor (float linear_acceleration_factor)
 
float getFollowLength ()
 
void setFollowLength (float follow_distance)
 
- Public Member Functions inherited from BaseCameraEntity
 BaseCameraEntity (float fov, const glm::vec3 &loc)
 
 BaseCameraEntity (float fov, const glm::vec3 &loc, float near_plane, float far_plane)
 
virtual glm::vec3 getLocation () const override
 
virtual const PosegetPose () const override
 
virtual void setPose (const Pose &pose) override
 
virtual glm::mat4 getPerspective (float aspect) const override
 
virtual glm::mat4 getOrthographic () const override
 
glm::mat4 getOrthographic (float left, float right, float bottom, float top, float near_plane, float far_plane)
 
virtual glm::vec3 getViewDir (const Pose &aPoseOverride) const override
 
virtual glm::mat4 getView (const Pose &aPoseOverride) const override
 
virtual void setNearPlane (float near_plane)
 
virtual void setFarPlane (float far_plane)
 
- Public Member Functions inherited from Entity
 Entity (const std::string &name)
 
const ent_uuid_t & UUID () const
 
const std::string & getName () const
 
void setName (const std::string &name)
 
void addChild (Entity *entity)
 
virtual void unlink ()
 
virtual void link (Entity *parent)
 
virtual Entityreplace (Entity *replacement)
 Replace the node in the tree with 'replacement' and return original node ('this')
 
const std::map< ent_uuid_t, Entity * > & getChildren () const
 
size_t numChildren () const
 
bool hasParent () const
 
EntitygetParent ()
 
const EntitygetParent () const
 
- Public Member Functions inherited from PosedComponent
virtual bool isPosed () const override
 
- Public Member Functions inherited from RootComponent
virtual bool isDrawable () const
 
- Public Member Functions inherited from PoseableComponent
virtual bool isPoseable () const override
 
- Public Member Functions inherited from CachedFinalPose
virtual const PosegetCachedFinalPose () const
 
virtual void setCachedFinalPose (const Pose &aPose)
 

Protected Attributes

vec3 velocity = vec3(0.0)
 
float linear_acceleration_factor = 3.0f
 
float base_velocity_factor = .1f
 
float follow_distance = 2.0f
 
float distance_exponent = 2.5f
 
float max_distance = 500.0f
 
mat4 look
 
- Protected Attributes inherited from Entity
std::string _name
 
Entity_parent = nullptr
 
std::map< ent_uuid_t, Entity * > _children
 
- Protected Attributes inherited from CachedFinalPose
Pose _mCachedFinalPose
 

Additional Inherited Members

- Public Attributes inherited from BaseCameraEntity
float fov
 
float near_plane
 
float far_plane
 
Pose pose
 
- Public Attributes inherited from Entity
unsigned int traversal_scratch = 0
 

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