1//************************************ bs::framework - Copyright 2018 Marko Pintera **************************************//
2//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
3#pragma once
4
5#include "BsCorePrerequisites.h"
6#include "Physics/BsCollider.h"
7#include "Math/BsVector3.h"
8#include "Math/BsQuaternion.h"
9
10namespace bs
11{
12 class PhysicsScene;
13
14 /** @addtogroup Physics
15 * @{
16 */
17
18 /** A collider with plane geometry. Plane colliders cannot be a part of non-kinematic rigidbodies. */
19 class BS_CORE_EXPORT PlaneCollider : public Collider
20 {
21 public:
22 PlaneCollider() = default;
23
24 /**
25 * Creates a new plane collider.
26 *
27 * @param[in] scene Scene into which to add the collider to.
28 * @param[in] position Position of the collider.
29 * @param[in] rotation Rotation of the collider.
30 */
31 static SPtr<PlaneCollider> create(PhysicsScene& scene, const Vector3& position = Vector3::ZERO,
32 const Quaternion& rotation = Quaternion::IDENTITY);
33 };
34
35 /** @} */
36}