HPC_Voxel_Engine 0.2.0
High-Performance C++ Voxel Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
RigidBody Struct Reference

Represents a physical object subject to gravity and collision in the voxel world. More...

#include <src/physics/PhysicsSystem.h>

Collaboration diagram for RigidBody:
Collaboration graph

Public Member Functions

AABB GetAABB (const Core::Vec3 &newPos) const
 

Public Attributes

Core::Vec3 m_ObjPos
 
Core::Vec3 m_ObjVelocity
 
Core::Vec3 m_ObjSize
 
bool m_bIsGrounded {false}
 

Detailed Description

Represents a physical object subject to gravity and collision in the voxel world.

Member Function Documentation

◆ GetAABB()

AABB RigidBody::GetAABB ( const Core::Vec3 newPos) const
inline
Here is the caller graph for this function:

Member Data Documentation

◆ m_bIsGrounded

bool RigidBody::m_bIsGrounded {false}

◆ m_ObjPos

Core::Vec3 RigidBody::m_ObjPos

◆ m_ObjSize

Core::Vec3 RigidBody::m_ObjSize

◆ m_ObjVelocity

Core::Vec3 RigidBody::m_ObjVelocity

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