| 12345678910111213141516171819202122232425262728293031 |
- #pragma once
- #include "BsEditorPrerequisites.h"
- #include "BsHandleSlider.h"
- #include "BsRect3.h"
- namespace BansheeEngine
- {
- class BS_ED_EXPORT HandleSliderPlane : public HandleSlider
- {
- public:
- HandleSliderPlane(const Vector3& dir1, const Vector3& dir2, float length, float snapValue, bool fixedScale);
- ~HandleSliderPlane();
- bool intersects(const Ray& ray, float& t) const;
- void update(const HCamera& camera, const Vector2I& pointerPos, const Ray& ray);
- float getDelta() const { return 0.0f; /* TODO */ }
- Vector3 getDeltaDirection() const { return Vector3::ZERO; /* TODO */ }
- Vector3 getNewPosition() const { return mPosition; /* TODO */ }
- protected:
- void reset();
- Vector3 mDirection1;
- Vector3 mDirection2;
- float mLength;
- Rect3 mCollider;
- };
- }
|