| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- using bs;
- namespace bs.Editor
- {
- /** @addtogroup Handles
- * @{
- */
- /// <summary>
- /// Base class for all the built-in handle types.
- /// </summary>
- public abstract class DefaultHandle : Handle
- {
- protected Vector3 position;
- protected Quaternion rotation;
- /// <summary>
- /// World position of the handle.
- /// </summary>
- public Vector3 Position
- {
- get { return position; }
- set { position = value; }
- }
- /// <summary>
- /// World rotation of the handle.
- /// </summary>
- public Quaternion Rotation
- {
- get { return rotation; }
- set { rotation = value; }
- }
- /// <summary>
- /// Checks is the handle currently being interacted with.
- /// </summary>
- /// <returns>True if the handle is being interacted with (dragged or clicked).</returns>
- internal abstract bool IsDragged();
- }
- /** @} */
- }
|