AireEngine
A 3D Open-World Game Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Aire::RbCuboid Class Reference
Inheritance diagram for Aire::RbCuboid:
Inheritance graph
[legend]
Collaboration diagram for Aire::RbCuboid:
Collaboration graph
[legend]

Public Member Functions

 RbCuboid (int rbIndex, float aWidth, float aHeight, float aDepth, glm::vec3 pos=glm::vec3(0, 0, 0), glm::mat3 rot=glm::mat3(1.0))
 
- Public Member Functions inherited from Aire::Rigidbody
 Rigidbody (int rbIndex, glm::vec3 pos=glm::vec3(0, 0, 0), glm::mat3 rot=glm::mat3(1.0))
 
void update (float aTerrainHeight)
 

Additional Inherited Members

- Public Attributes inherited from Aire::Rigidbody
int rbIndex
 
glm::vec3 position
 
glm::mat3 orientation
 
float verticalSpeed
 
glm::vec3 velocity = glm::vec3(0, 0, 0)
 
bool hasGravity
 
float gravityValue
 
bool grounded = true
 
bool collidable = true
 
bool isStatic = false
 
bool willCollide = false
 
bool canFall = true
 
bool isSphere = false
 
float width = 0
 
float height = 0
 
float depth = 0
 
float radius = 0
 

Constructor & Destructor Documentation

◆ RbCuboid()

RbCuboid::RbCuboid ( int rbIndex,
float aWidth,
float aHeight,
float aDepth,
glm::vec3 pos = glm::vec3(0, 0, 0),
glm::mat3 rot = glm::mat3(1.0) )

Rigidbody Constructor - No camera Creates a rigidbody at a given position.

Parameters
rbIndexoriginal index of the rigidbody in rigidbodies
aWidth: width of the rigidbody box
aHeightheight of the rigidbody box
aDepth: depth of the rigidbody box
posoptional positional argument, starting point for rigid body (defaults to 0,0,0).
rotoptional rotational argument, starting orientation for rigid body (defaults to identity)

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