BsCapsuleCollider.h 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsCorePrerequisites.h"
  5. #include "BsCollider.h"
  6. #include "BsVector3.h"
  7. #include "BsQuaternion.h"
  8. namespace BansheeEngine
  9. {
  10. class BS_CORE_EXPORT CapsuleCollider : public Collider
  11. {
  12. public:
  13. CapsuleCollider();
  14. /** Sets the height of the capsule, from the origin to one of the hemispherical centers, along the normal vector. */
  15. virtual void setHalfHeight(float halfHeight) = 0;
  16. /** Gets the height of the capsule, from the origin to one of the hemispherical centers, along the normal vector. */
  17. virtual float getHalfHeight() const = 0;
  18. /** Sets the radius of the capsule. */
  19. virtual void setRadius(float radius) = 0;
  20. /** Gets the radius of the capsule. */
  21. virtual float getRadius() const = 0;
  22. static SPtr<CapsuleCollider> create(float radius = 0.0f, float halfHeight = 0.0f,
  23. const Vector3& position = Vector3::ZERO, const Quaternion& rotation = Quaternion::IDENTITY);
  24. };
  25. }