![]() |
Nazara Engine
0.4
A fast, complete, cross-platform API designed for game development
|
NDK class that represents a two-dimensional collision geometry. More...
Inherits Ndk::Component< ComponentType >.
Public Member Functions | |
| CollisionComponent2D (Nz::Collider2DRef geom=Nz::Collider2DRef()) | |
| Constructs a CollisionComponent2D object with a geometry. More... | |
| CollisionComponent2D (const CollisionComponent2D &collision) | |
| Constructs a CollisionComponent2D object by copy semantic. More... | |
| Nz::Rectf | GetAABB () const |
| Gets the collision box representing the entity. More... | |
| const Nz::Collider2DRef & | GetGeom () const |
| Gets the geometry representing the entity. More... | |
| void | SetGeom (Nz::Collider2DRef geom) |
| Sets geometry for the entity. More... | |
| CollisionComponent2D & | operator= (Nz::Collider2DRef geom) |
| Assigns the geometry to this component. More... | |
| CollisionComponent2D & | operator= (CollisionComponent2D &&collision)=default |
Static Public Attributes | |
| static ComponentIndex | componentIndex |
Friends | |
| class | PhysicsSystem2D |
NDK class that represents a two-dimensional collision geometry.
|
inline |
Constructs a CollisionComponent2D object with a geometry.
| geom | Reference to a geometry symbolizing the entity |
|
inline |
Constructs a CollisionComponent2D object by copy semantic.
| collision | CollisionComponent2D to copy |
|
inline |
Gets the collision box representing the entity.
|
inline |
Gets the geometry representing the entity.
|
inline |
Assigns the geometry to this component.
| geom | Reference to a geometry symbolizing the entity |
| void Ndk::CollisionComponent2D::SetGeom | ( | Nz::Collider2DRef | geom | ) |
Sets geometry for the entity.
| geom | Geometry used for collisions |