StarEngine
|
#include <CircleColliderComponent.h>
Public Member Functions | |
CircleColliderComponent (float radius) | |
CircleColliderComponent (float radius, const tstring *layers, uint8 n=1) | |
~CircleColliderComponent (void) | |
bool | CollidesWithPoint (const vec2 &point) const |
bool | CollidesWithLine (const vec2 &point1, const vec2 &point2) const |
void | CollidesWith (const BaseColliderComponent *other) const |
float | GetRadius () const |
void | SetRadius (float radius) |
float | GetRealRadius () const |
Public Member Functions inherited from star::BaseColliderComponent | |
BaseColliderComponent () | |
BaseColliderComponent (const tstring *layers, uint8 n=1) | |
virtual | ~BaseColliderComponent () |
void | Update (const Context &context) |
void | Draw () |
void | SetAsTrigger (bool isTrigger) |
bool | IsTrigger () const |
void | SetAsStatic (bool isStatic) |
bool | IsStatic () const |
Public Member Functions inherited from star::BaseComponent | |
BaseComponent (void) | |
BaseComponent (Object *parent) | |
virtual | ~BaseComponent (void) |
void | Initialize () |
bool | IsInitialized () const |
Object * | GetParent () const |
void | SetParent (Object *parent) |
BaseScene * | GetGameScene () const |
TransformComponent * | GetTransform () const |
Protected Member Functions | |
void | InitializeColliderComponent () |
bool | CircleCircleCollision (const CircleColliderComponent *collider1, const CircleColliderComponent *collider2) const |
Protected Attributes | |
float | m_Radius |
Protected Attributes inherited from star::BaseColliderComponent | |
bool | m_bIsTrigger |
bool | m_bIsStatic |
Protected Attributes inherited from star::BaseComponent | |
Object * | m_pParentObject |
bool | m_bInitialized |
star::CircleColliderComponent::CircleColliderComponent | ( | float | radius | ) |
star::CircleColliderComponent::CircleColliderComponent | ( | float | radius, |
const tstring * | layers, | ||
uint8 | n = 1 |
||
) |
star::CircleColliderComponent::~CircleColliderComponent | ( | void | ) |
|
protected |
|
virtual |
Implements star::BaseColliderComponent.
|
virtual |
Implements star::BaseColliderComponent.
|
virtual |
Implements star::BaseColliderComponent.
float star::CircleColliderComponent::GetRadius | ( | ) | const |
float star::CircleColliderComponent::GetRealRadius | ( | ) | const |
|
protectedvirtual |
Implements star::BaseColliderComponent.
void star::CircleColliderComponent::SetRadius | ( | float | radius | ) |
|
protected |