Skip to content

Commit

Permalink
Fixed missing function.
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykcieslak committed Nov 25, 2020
1 parent 9384493 commit 79dc242
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Library/include/entities/AnimatedEntity.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ namespace sf
//! A method returning the angular acceleration of the body.
Vector3 getAngularAcceleration() const;

//! A method returning a pointer to the body trajectory.
Trajectory* getTrajectory();

//! A method returning the extents of the body axis alligned bounding box.
/*!
\param min a point located at the minimum coordinate corner
Expand Down
5 changes: 5 additions & 0 deletions Library/src/entities/AnimatedEntity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,11 @@ Vector3 AnimatedEntity::getAngularAcceleration() const
return V0();
}

Trajectory* AnimatedEntity::getTrajectory()
{
return tr;
}

void AnimatedEntity::getAABB(Vector3& min, Vector3& max)
{
if(rigidBody != nullptr)
Expand Down

0 comments on commit 79dc242

Please sign in to comment.