TazGraph Project v0.1.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
RigidBodyComponent Class Reference
Inheritance diagram for RigidBodyComponent:
Inheritance graph
[legend]
Collaboration diagram for RigidBodyComponent:
Collaboration graph
[legend]

Public Member Functions

 RigidBodyComponent (float acc, float maxg)
 
void init () override
 
void update (float deltaTime) override
 
std::string GetComponentName () override
 
- Public Member Functions inherited from BaseComponent
virtual void draw (size_t e_index, PlaneModelRenderer &batch, TazGraphEngine::Window &window)
 
virtual void draw (size_t e_index, LineRenderer &batch, TazGraphEngine::Window &window)
 
virtual void draw (size_t e_index, PlaneColorRenderer &batch, TazGraphEngine::Window &window)
 
virtual void draw (size_t e_index, LightRenderer &batch, TazGraphEngine::Window &window)
 
virtual void showGUI ()
 

Public Attributes

float GravityForce = 1.0f
 
float accelGravity = 0.045f
 
float maxGravity = 3.f
 
bool onGround = false
 
bool justjumped = false
 
- Public Attributes inherited from Component
Entityentity = nullptr
 
- Public Attributes inherited from BaseComponent
ComponentID id = 0u
 

Member Function Documentation

◆ GetComponentName()

std::string RigidBodyComponent::GetComponentName ( )
inlineoverridevirtual

Reimplemented from BaseComponent.

◆ init()

void RigidBodyComponent::init ( )
inlineoverridevirtual

Reimplemented from BaseComponent.

◆ update()

void RigidBodyComponent::update ( float  deltaTime)
inlineoverridevirtual

Reimplemented from BaseComponent.


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