BsPlaneCollider.h 931 B

123456789101112131415161718192021222324252627282930313233
  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. /** @addtogroup Physics
  11. * @{
  12. */
  13. /** A collider with plane geometry. Plane colliders cannot be a part of non-kinematic rigidbodies. */
  14. class BS_CORE_EXPORT PlaneCollider : public Collider
  15. {
  16. public:
  17. PlaneCollider();
  18. /**
  19. * Creates a new plane collider.
  20. *
  21. * @param[in] position Position of the collider.
  22. * @param[in] rotation Rotation of the collider.
  23. */
  24. static SPtr<PlaneCollider> create(const Vector3& position = Vector3::ZERO,
  25. const Quaternion& rotation = Quaternion::IDENTITY);
  26. };
  27. /** @} */
  28. }