Skip to content

Commit

Permalink
update body
Browse files Browse the repository at this point in the history
  • Loading branch information
tyanmahou committed Dec 22, 2024
1 parent 617e504 commit 3cbc88e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Re-Abyss/app/components/Actor/Common/Body.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@ namespace abyss::Actor
{
return m_pos + m_offset;
}
s3d::Vec2 Body::getOffsetedPosPrev() const
{
return m_prevPos + m_offsetPrev;
}
Body& Body::setAnchor(BodyAnchor anchor)
{
m_anchor = anchor;
Expand Down
1 change: 1 addition & 0 deletions Re-Abyss/app/components/Actor/Common/Body.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ namespace abyss::Actor
Body& setOffset(const s3d::Vec2& offset);
const s3d::Vec2& getOffset() const;
s3d::Vec2 getOffsetedPos() const;
s3d::Vec2 getOffsetedPosPrev() const;

Body& setAnchor(BodyAnchor anchor);

Expand Down

0 comments on commit 3cbc88e

Please sign in to comment.