mirror of https://github.com/axmolengine/axmol.git
MotionStreak MoveTo/MoveBy action OK
This commit is contained in:
parent
0ac7fca9f0
commit
fa683ec98b
|
@ -169,6 +169,11 @@ float MotionStreak::getPositionX() const
|
|||
return _positionR.x;
|
||||
}
|
||||
|
||||
Vec3 MotionStreak::getPosition3D() const
|
||||
{
|
||||
return Vec3(_positionR.x, _positionR.y, getPositionZ());
|
||||
}
|
||||
|
||||
void MotionStreak::setPositionX(float x)
|
||||
{
|
||||
if (!_startingPositionInitialized) {
|
||||
|
|
|
@ -75,6 +75,7 @@ public:
|
|||
virtual void setPositionY(float y) override;
|
||||
virtual float getPositionX(void) const override;
|
||||
virtual float getPositionY(void) const override;
|
||||
virtual Vec3 getPosition3D() const override;
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
|
Loading…
Reference in New Issue