![]() |
Skylicht Engine
|
A static infinite plane collision shape. More...
#include <Collider/CStaticPlaneCollider.h>
Public Member Functions | |
| virtual void | updateComponent () |
| virtual CObjectSerializable * | createSerializable () |
| virtual void | loadSerializable (CObjectSerializable *object) |
| const core::vector3df & | getNormal () |
| Gets the normal of the plane. | |
| float | getD () |
| Gets the plane constant (distance from origin). | |
| void | setPlane (const core::vector3df &normal, float d) |
| Sets the plane using a normal and a constant. | |
| void | setPlane (const core::vector3df &normal, const core::vector3df &origin) |
| Sets the plane using a normal and a point on the plane. | |
| Public Member Functions inherited from Skylicht::Physics::CCollider | |
| virtual void | initComponent () |
| EColliderType | getColliderType () |
| Gets the type of the collider. | |
| void | initRigidbody () |
| Triggers the initialization of the attached CRigidbody. | |
| void | clampSize (core::vector3df &size) |
| Clamps the size vector to ensure no negative dimensions. | |
| bool | isDynamicSupport () |
| Checks if this collider type supports dynamic rigid bodies. | |
| CMesh * | generateMesh (const core::aabbox3df &maxBBox) |
| Generates a visual mesh representing the collision shape. | |
| core::aabbox3df | getBBox () |
| Gets the axis-aligned bounding box of the collider in world space. | |
| Public Member Functions inherited from Skylicht::CComponentSystem | |
| const char * | getName () |
| virtual void | reset () |
| virtual void | startComponent () |
| virtual void | endUpdate () |
| virtual void | onEnable (bool b) |
| virtual void | onUpdateCullingLayer (u32 mask) |
| void | setEnable (bool b) |
| bool | isEnable () |
| CGameObject * | getGameObject () |
| void | setEnableSerializable (bool b) |
| bool | isSerializable () |
| void | addLinkComponent (CComponentSystem *comp) |
| void | removeAllLink () |
| Public Member Functions inherited from Skylicht::IActivatorObject | |
| virtual | ~IActivatorObject () |
| Virtual destructor for polymorphic activator objects. | |
Protected Attributes | |
| core::vector3df | m_normal |
| float | m_d |
| Protected Attributes inherited from Skylicht::Physics::CCollider | |
| EColliderType | m_colliderType |
| core::vector3df | m_offset |
| bool | m_dynamicSupport |
| Protected Attributes inherited from Skylicht::CComponentSystem | |
| CGameObject * | m_gameObject |
| bool | m_enable |
| bool | m_serializable |
| std::vector< CComponentSystem * > | m_linkComponent |
Additional Inherited Members | |
| Public Types inherited from Skylicht::Physics::CCollider | |
| enum | EColliderType { Box , Sphere , Plane , Cylinder , Capsule , BvhMesh , ConvexMesh , Mesh , Unknown } |
| Supported collider types. | |
| Static Public Member Functions inherited from Skylicht::CComponentSystem | |
| static int | useComponent (CComponentSystem *used) |
| Protected Member Functions inherited from Skylicht::Physics::CCollider | |
| CMesh * | generateMesh (IMesh *primitive, bool tangent) |
| Helper to generate a mesh from a primitive. | |
| CMesh * | getPlane (const core::plane3df &plane, float sizeX, float sizeZ) |
| Helper to generate a plane mesh. | |
| Protected Member Functions inherited from Skylicht::CComponentSystem | |
| void | setOwner (CGameObject *obj) |
A static infinite plane collision shape.
|
virtual |
Reimplemented from Skylicht::CComponentSystem.
|
inline |
Gets the plane constant (distance from origin).
|
inline |
Gets the normal of the plane.
|
virtual |
Reimplemented from Skylicht::CComponentSystem.
| void Skylicht::Physics::CStaticPlaneCollider::setPlane | ( | const core::vector3df & | normal, |
| const core::vector3df & | origin ) |
Sets the plane using a normal and a point on the plane.
| normal | Normal vector. |
| origin | A point on the plane. |
| void Skylicht::Physics::CStaticPlaneCollider::setPlane | ( | const core::vector3df & | normal, |
| float | d ) |
Sets the plane using a normal and a constant.
| normal | Normal vector. |
| d | Constant D. |
|
virtual |
Implements Skylicht::CComponentSystem.