Gorilla.Controller.Input.ThirdPerson
Unit Gorilla.Controller.Input.ThirdPerson.pasClasses
- TGorillaThirdPersonController = class ( TGorillaFirstPersonController )
TGorillaThirdPersonController
The third-person controller is a non-visual control to handle movement in 3D space from third-person-perspective. This means the camera is placed away from a character and rotates around the character.
Remarks
You have to link an input controller to the controller to react on mouse and key input.Ancestors
Members
Fields
Methods
- public constructor Create ( AOwner : TComponent ) ;
- public destructor Destroy ( ) ;
- protected procedure SetCamera ( const AValue : TCamera ) ; override;
- protected procedure SetMouseWheelSpeed ( const AValue : Single ) ;
- protected procedure SetCameraZLimit ( const AValue : TPointF ) ;
- protected procedure DoOnMouseWheel ( ASender : TObject; APos : TPointF; const AWheelData : Integer ) ; virtual;
- protected procedure DoSetupMouseInteraction ( ) ; override;
- protected procedure DoSetRotation ( ARotationDelta : TPointF ) ; override;
- protected function ComputeRotationDelta ( ADiffPos : TPointF; ASpeed : Single ) : TPointF ; override;
- public procedure AfterConstruction ( ) ; override;
Properties
- published MouseWheelSpeed : Single
- published CameraZLimit : TPointF
Get or set the camera movement limit on z-axis. The X-value defines the lower barrier, while the Y-value the upper barrier defines.
read FCameraZLimit
write SetCameraZLimit