| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- // Copyright (C) 2009-2016, Panagiotis Christopoulos Charitos.
- // All rights reserved.
- // Code licensed under the BSD License.
- // http://www.anki3d.org/LICENSE
- #pragma once
- #include <anki/scene/Common.h>
- #include <anki/scene/SceneNode.h>
- #include <anki/scene/MoveComponent.h>
- namespace anki
- {
- #if 0
- /// XXX
- class PathPoint
- {
- friend class Path;
- public:
- /// @name Accessors
- /// @{
- const Vec3& getPosition() const
- {
- return pos;
- }
- const Quat& getRotation() const
- {
- return rot;
- }
- F32 getDistance() const
- {
- return dist;
- }
- F32 getDistanceFromFirst() const
- {
- return distStart;
- }
- /// @}
- private:
- Vec3 pos;
- Quat rot;
- F32 distStart; ///< Distance from the first PathPoint of the path
- F32 dist; ///< Distance from the previous PathPoint in the path list
- };
- /// XXX
- class Path: public SceneNode, public MoveComponent
- {
- public:
- Path(
- const char* name, SceneGraph* scene, // SceneNode
- const char* filename); // Self
- const SceneVector<PathPoint>& getPoints() const
- {
- return points;
- }
- F32 getDistance() const
- {
- return distance;
- }
- private:
- SceneVector<PathPoint> points;
- F32 distance;
- };
- #endif
- } // end namespace anki
|