BsPhysXBoxCollider.h 751 B

123456789101112131415161718192021222324
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsPhysXPrerequisites.h"
  5. #include "BsBoxCollider.h"
  6. #include "PxPhysics.h"
  7. namespace BansheeEngine
  8. {
  9. class PhysXBoxCollider : public BoxCollider
  10. {
  11. public:
  12. PhysXBoxCollider(physx::PxPhysics* physx, const Vector3& position, const Quaternion& rotation,
  13. const Vector3& extents);
  14. ~PhysXBoxCollider();
  15. void setExtents(const Vector3& extents) override;
  16. Vector3 getExtents() const override;
  17. private:
  18. FPhysXCollider* getInternal() const;
  19. };
  20. }