Nazara Engine  0.4
A fast, complete, cross-platform API designed for game development
Ndk::PhysicsSystem2D Class Reference

NDK class that represents a two-dimensional physics system. More...

Inherits Ndk::System< SystemType >.

Public Member Functions

 PhysicsSystem2D ()
 Constructs an PhysicsSystem object by default.
 
 PhysicsSystem2D (const PhysicsSystem2D &system)
 
Nz::PhysWorld2D & GetWorld ()
 Gets the physical world. More...
 
const Nz::PhysWorld2D & GetWorld () const
 Gets the physical world. More...
 

Static Public Attributes

static SystemIndex systemIndex
 

Detailed Description

NDK class that represents a two-dimensional physics system.

Remarks
This system is enabled if the entity has the trait: NodeComponent and any of these two: CollisionComponent3D or PhysicsComponent3D
Static objects do not have a velocity specified by the physical engine

Member Function Documentation

◆ GetWorld() [1/2]

Nz::PhysWorld2D & Ndk::PhysicsSystem2D::GetWorld ( )
inline

Gets the physical world.

Returns
A reference to the physical world

◆ GetWorld() [2/2]

const Nz::PhysWorld2D & Ndk::PhysicsSystem2D::GetWorld ( ) const
inline

Gets the physical world.

Returns
A constant reference to the physical world

The documentation for this class was generated from the following files: