olcPixelGameEngine v2.28
The official distribution of olcPixelGameEngine, a tool used in javidx9's YouTube videos and projects
Loading...
Searching...
No Matches
olc::rcw::Object Class Reference

#include <olcPGEX_RayCastWorld.h>

Public Member Functions

void Walk (const float fWalkSpeed)
 
void Strafe (const float fStrafeSpeed)
 
void Turn (const float fTurnSpeed)
 
void Stop ()
 

Public Attributes

uint32_t nGenericID = 0
 
olc::vf2d pos
 
olc::vf2d vel
 
float fSpeed = 0.0f
 
float fHeading = 0.0f
 
float fRadius = 0.5f
 
bool bVisible = true
 
bool bRemove = false
 
bool bCollideWithScenery = true
 
bool bNotifySceneryCollision = false
 
bool bCollideWithObjects = false
 
bool bNotifyObjectCollision = false
 
bool bCanBeMoved = true
 
bool bIsActive = true
 

Member Function Documentation

◆ Stop()

void olc::rcw::Object::Stop ( )

◆ Strafe()

void olc::rcw::Object::Strafe ( const float fStrafeSpeed)

◆ Turn()

void olc::rcw::Object::Turn ( const float fTurnSpeed)

◆ Walk()

void olc::rcw::Object::Walk ( const float fWalkSpeed)

Member Data Documentation

◆ bCanBeMoved

bool olc::rcw::Object::bCanBeMoved = true

◆ bCollideWithObjects

bool olc::rcw::Object::bCollideWithObjects = false

◆ bCollideWithScenery

bool olc::rcw::Object::bCollideWithScenery = true

◆ bIsActive

bool olc::rcw::Object::bIsActive = true

◆ bNotifyObjectCollision

bool olc::rcw::Object::bNotifyObjectCollision = false

◆ bNotifySceneryCollision

bool olc::rcw::Object::bNotifySceneryCollision = false

◆ bRemove

bool olc::rcw::Object::bRemove = false

◆ bVisible

bool olc::rcw::Object::bVisible = true

◆ fHeading

float olc::rcw::Object::fHeading = 0.0f

◆ fRadius

float olc::rcw::Object::fRadius = 0.5f

◆ fSpeed

float olc::rcw::Object::fSpeed = 0.0f

◆ nGenericID

uint32_t olc::rcw::Object::nGenericID = 0

◆ pos

olc::vf2d olc::rcw::Object::pos

◆ vel

olc::vf2d olc::rcw::Object::vel

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