#include <firstpersoncontroller.h>
Public Member Functions | |
virtual void | getDependentComponents (std::vector< rtti::TypeInfo > &components) const override |
![]() | |
virtual const rtti::TypeInfo | getInstanceType () const =0 |
![]() | |
Resource () | |
![]() | |
Object () | |
virtual | ~Object () |
virtual bool | init (utility::ErrorState &errorState) |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Public Attributes | |
float | mMovementSpeed = 3.0f |
Property: "MovementSpeed" The speed with which to move. More... | |
float | mRotateSpeed = 1.0f |
Property: "RotateSpeed" The speed with which to rotate. More... | |
ComponentPtr< nap::PerspCameraComponent > | mPerspCameraComponent |
Property: "PerspCameraComponent" Camera that we're controlling. More... | |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Resource part of the first person controller. Applies first-person movement to the (camera) entity it is attached to. Hold left mouse to activate. WASD to move, QE to move up and down, mouse to rotate. Requires a nap::KeyInputComponent and nap::TransformComponent to be present on the same entity.
|
overridevirtual |
Get the types of components on which this component depends
Reimplemented from Component.
float mMovementSpeed = 3.0f |
Property: "MovementSpeed" The speed with which to move.
ComponentPtr<nap::PerspCameraComponent> mPerspCameraComponent |
Property: "PerspCameraComponent" Camera that we're controlling.
float mRotateSpeed = 1.0f |
Property: "RotateSpeed" The speed with which to rotate.