DefaultHandle.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. using BansheeEngine;
  4. namespace BansheeEditor
  5. {
  6. /// <summary>
  7. /// Base class for all the built-in handle types.
  8. /// </summary>
  9. public abstract class DefaultHandle : Handle
  10. {
  11. protected Vector3 position;
  12. protected Quaternion rotation;
  13. /// <summary>
  14. /// World position of the handle.
  15. /// </summary>
  16. public Vector3 Position
  17. {
  18. get { return position; }
  19. set { position = value; }
  20. }
  21. /// <summary>
  22. /// World rotation of the handle.
  23. /// </summary>
  24. public Quaternion Rotation
  25. {
  26. get { return rotation; }
  27. set { rotation = value; }
  28. }
  29. /// <summary>
  30. /// Checks is the handle currently being interacted with.
  31. /// </summary>
  32. /// <returns>True if the handle is being interacted with (i.e. dragged or clicked).</returns>
  33. internal abstract bool IsDragged();
  34. }
  35. }