2D_Game_Engine
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
RigidbodyComponent Class Reference

#include <entity.hpp>

Public Types

enum class  BodyType { Static , Dynamic , Kinematic }
 

Public Member Functions

 RigidbodyComponent ()
 
 RigidbodyComponent (uint32_t uid)
 
 RigidbodyComponent (BodyType bodyType, bool fixedRotation, uint32_t uid)
 

Public Attributes

BodyType m_BodyType =BodyType::Static
 
bool m_FixedRotation =true
 
b2Body * m_RuntimeBody =nullptr
 
uint32_t m_UID
 

Detailed Description

Definition at line 199 of file entity.hpp.

Member Enumeration Documentation

◆ BodyType

enum class RigidbodyComponent::BodyType
strong
Enumerator
Static 
Dynamic 
Kinematic 

Definition at line 201 of file entity.hpp.

Constructor & Destructor Documentation

◆ RigidbodyComponent() [1/3]

RigidbodyComponent::RigidbodyComponent ( )
inline

Definition at line 207 of file entity.hpp.

◆ RigidbodyComponent() [2/3]

RigidbodyComponent::RigidbodyComponent ( uint32_t uid)
inline

Definition at line 208 of file entity.hpp.

◆ RigidbodyComponent() [3/3]

RigidbodyComponent::RigidbodyComponent ( BodyType bodyType,
bool fixedRotation,
uint32_t uid )
inline

Definition at line 209 of file entity.hpp.

Member Data Documentation

◆ m_BodyType

BodyType RigidbodyComponent::m_BodyType =BodyType::Static

Definition at line 211 of file entity.hpp.

◆ m_FixedRotation

bool RigidbodyComponent::m_FixedRotation =true

Definition at line 212 of file entity.hpp.

◆ m_RuntimeBody

b2Body* RigidbodyComponent::m_RuntimeBody =nullptr

Definition at line 213 of file entity.hpp.

◆ m_UID

uint32_t RigidbodyComponent::m_UID

Definition at line 215 of file entity.hpp.


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