Core/Position: Allow implicit casting to G3D::Vector. Also, add a utility overload to MotionMaster.

(cherry picked from commit 9f15482b84)
This commit is contained in:
treeston
2016-08-31 21:41:23 +02:00
committed by joschiwald
parent ebbcd601b9
commit 7b3b333dd5
4 changed files with 13 additions and 0 deletions

View File

@@ -443,7 +443,11 @@ void MotionMaster::MoveCirclePath(float x, float y, float z, float radius, bool
void MotionMaster::MoveSmoothPath(uint32 pointId, G3D::Vector3 const* pathPoints, size_t pathSize, bool walk)
{
Movement::PointsArray path(pathPoints, pathPoints + pathSize);
MoveSmoothPath(pointId, path, walk);
}
void MotionMaster::MoveSmoothPath(uint32 pointId, Movement::PointsArray const& path, bool walk)
{
Movement::MoveSplineInit init(_owner);
if (_owner->CanFly())
init.SetUncompressed();