FirstPersonController

from acron.stock import FirstPersonController
class FirstPersonController(**props)

Bases: Actor

A walking camera: WASD (or arrows) moves on the ground plane at speed units/s, the mouse turns (mouse_sensitivity degrees per normalized pointer unit), Space jumps jump_height over jump_duration seconds. The camera reparents under the controller at eye_height; the pointer is captured only when a real window exists.

Inheritance diagram

digraph inheritance2d624b2d5f { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "Actor" [URL="acron.actor.Actor.html#acron.actor.Actor",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="A thing in the world. See the module docstring."]; "FirstPersonController" [URL="acron.stock.FirstPersonController.html#acron.stock.FirstPersonController",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="A walking camera: WASD (or arrows) moves on the ground plane at ``speed``"]; "Actor" -> "FirstPersonController" [arrowsize=0.75,style=""]; }
eye_height

A declared property.

type coerces assigned values (Vec3, float, str, bool, a color, or any callable); default may be a value or a zero-arg factory. Flags: edit (shown in the inspector), save (written to the scene file), replicate (networked; on_rep names the callback), pin (exposed as a blueprint pin). fget/fset make the prop a view over engine state (the NodePath transform) instead of stored data. hint / range / doc are metadata for tools.

jump_duration

A declared property.

type coerces assigned values (Vec3, float, str, bool, a color, or any callable); default may be a value or a zero-arg factory. Flags: edit (shown in the inspector), save (written to the scene file), replicate (networked; on_rep names the callback), pin (exposed as a blueprint pin). fget/fset make the prop a view over engine state (the NodePath transform) instead of stored data. hint / range / doc are metadata for tools.

jump_height

A declared property.

type coerces assigned values (Vec3, float, str, bool, a color, or any callable); default may be a value or a zero-arg factory. Flags: edit (shown in the inspector), save (written to the scene file), replicate (networked; on_rep names the callback), pin (exposed as a blueprint pin). fget/fset make the prop a view over engine state (the NodePath transform) instead of stored data. hint / range / doc are metadata for tools.

mouse_sensitivity

A declared property.

type coerces assigned values (Vec3, float, str, bool, a color, or any callable); default may be a value or a zero-arg factory. Flags: edit (shown in the inspector), save (written to the scene file), replicate (networked; on_rep names the callback), pin (exposed as a blueprint pin). fget/fset make the prop a view over engine state (the NodePath transform) instead of stored data. hint / range / doc are metadata for tools.

speed

A declared property.

type coerces assigned values (Vec3, float, str, bool, a color, or any callable); default may be a value or a zero-arg factory. Flags: edit (shown in the inspector), save (written to the scene file), replicate (networked; on_rep names the callback), pin (exposed as a blueprint pin). fget/fset make the prop a view over engine state (the NodePath transform) instead of stored data. hint / range / doc are metadata for tools.