MotionStreak MoveTo/MoveBy action OK

This commit is contained in:
byeonggee.seo 2015-01-29 19:30:00 +09:00
parent 0ac7fca9f0
commit fa683ec98b
2 changed files with 6 additions and 0 deletions

View File

@ -169,6 +169,11 @@ float MotionStreak::getPositionX() const
return _positionR.x; return _positionR.x;
} }
Vec3 MotionStreak::getPosition3D() const
{
return Vec3(_positionR.x, _positionR.y, getPositionZ());
}
void MotionStreak::setPositionX(float x) void MotionStreak::setPositionX(float x)
{ {
if (!_startingPositionInitialized) { if (!_startingPositionInitialized) {

View File

@ -75,6 +75,7 @@ public:
virtual void setPositionY(float y) override; virtual void setPositionY(float y) override;
virtual float getPositionX(void) const override; virtual float getPositionX(void) const override;
virtual float getPositionY(void) const override; virtual float getPositionY(void) const override;
virtual Vec3 getPosition3D() const override;
/** /**
* @js NA * @js NA
* @lua NA * @lua NA