|
| PlayerController (Actor *pActor) |
|
void | OnNotify (SDL_Event &pEvent) override |
| Called when an input event occurs.
|
|
| MoveComponent (Actor *pOwner, int pUpdateOrder=100) |
| Constructor for MoveComponent.
|
|
| MoveComponent ()=delete |
|
| MoveComponent (const MoveComponent &)=delete |
|
MoveComponent & | operator= (const MoveComponent &)=delete |
|
Vector3 | GetSpeed () const |
| Gets the current speed of the actor.
|
|
void | SetSpeed (Vector3 pSpeed) |
| Sets the actor's speed.
|
|
void | AddForce (Vector3 pForce) |
| Adds a force to the actor's velocity.
|
|
Vector2 | GetRotationSpeed () const |
| Gets the current rotation speed of the actor.
|
|
void | SetRotationSpeed (Vector2 pRotationSpeed) |
| Sets the rotation speed of the actor.
|
|
virtual void | Update () override |
| Updates the position, rotation, and velocity of the actor each frame. Applies gravity, friction, rotation, and checks for collisions.
|
|
virtual Vector3 | GetDesiredPos () |
| Computes the desired position of the actor after applying speed and velocity. Also handles collision detection along the X, Y, and Z axes.
|
|
void | SetCollider (ColliderComponent *pCollider) |
| Sets the collider for collision detection.
|
|
ColliderComponent * | CheckCollision () |
| Checks for a collision with other colliders in the scene. If a collision is detected, applies a simple collision response.
|
|
| Component (Actor *pOwner, int pUpdateOrder=100) |
| Constructor for Component.
|
|
virtual | ~Component () |
|
virtual void | OnStart () |
| Called when the component is initialized (during actor start). This can be used to perform any setup operations for the component.
|
|
virtual void | OnEnd () |
| Called when the component is about to be destroyed (during actor destruction). This can be used to clean up or release any resources.
|
|
virtual void | OnUpdateWorldTrandform () |
| Called when the world transform of the actor is updated. This allows the component to react to changes in the actor's world transform.
|
|
void | SetActive (bool isActive) |
| Sets the active status of the component.
|
|
void | SetOwner (Actor *pOwner) |
| Sets the actor that owns this component.
|
|
int | GetUpdateOrder () const |
| Returns the update order of the component. Components with lower update orders are updated first.
|
|
Actor * | GetOwner () const |
| Returns the actor that owns this component.
|
|
virtual | ~IInputListener ()=default |
|