GUInity
|
#include <PlayerScript.hpp>
Public Member Functions | |
virtual void | awake () override |
virtual void | tick (float deltaSecods) override |
PlayerScript () | |
void | applyDrag (float deltaSeconds) |
virtual void | onCollision (Actor *actor) override |
virtual void | onTrigger (Actor *actor) override |
virtual shared_ptr< Component > | clone () override |
![]() | |
ScriptComponent () | |
virtual | ~ScriptComponent () |
virtual void | init () |
virtual void | destroy () |
virtual shared_ptr< ComponentDescription > | getComponentDescription () override |
virtual void | deserialize (shared_ptr< ComponentDescription > desc) override |
![]() | |
Component () | |
virtual | ~Component () |
virtual void | setActive (bool isActive) |
shared_ptr< Actor > | getActor () |
void | setActor (weak_ptr< Actor > actor) |
Public Attributes | |
float | moveSpeed |
float | rotateSpeed |
glm::vec3 | velocity |
weak_ptr< Actor > | actor |
shared_ptr< Material > | defaultMaterialRef |
shared_ptr< Mesh > | objMeshRef |
weak_ptr< Actor > | bulletSpawnPoint |
Additional Inherited Members | |
![]() | |
void | setCopyMode (bool initWithData) |
![]() | |
bool | initWithData |
bool | isActive |
Your documentation comment will go here
PlayerScript::PlayerScript | ( | ) |
Your documentation comment will go here
|
overridevirtual |
Component awake override
Reimplemented from ScriptComponent.
|
overridevirtual |
Clones current component (Prototype Design Pattern)
Reimplemented from ScriptComponent.
|
overridevirtual |
Callback function called when a collision occurs
Reimplemented from ScriptComponent.
|
overridevirtual |
Callback function called when a trigger collision occurs
Reimplemented from ScriptComponent.
|
overridevirtual |
Component tick override
[in] | deltaSeconds | last frame durations |
Reimplemented from ScriptComponent.