FirstPersonController¶
from acron.stock import FirstPersonController
- class FirstPersonController(**props)¶
Bases:
ActorA walking camera: WASD (or arrows) moves on the ground plane at
speedunits/s, the mouse turns (mouse_sensitivitydegrees per normalized pointer unit), Space jumpsjump_heightoverjump_durationseconds. The camera reparents under the controller ateye_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.
typecoerces assigned values (Vec3,float,str,bool, a color, or any callable);defaultmay be a value or a zero-arg factory. Flags:edit(shown in the inspector),save(written to the scene file),replicate(networked;on_repnames the callback),pin(exposed as a blueprint pin).fget/fsetmake the prop a view over engine state (the NodePath transform) instead of stored data.hint/range/docare metadata for tools.
- jump_duration¶
A declared property.
typecoerces assigned values (Vec3,float,str,bool, a color, or any callable);defaultmay be a value or a zero-arg factory. Flags:edit(shown in the inspector),save(written to the scene file),replicate(networked;on_repnames the callback),pin(exposed as a blueprint pin).fget/fsetmake the prop a view over engine state (the NodePath transform) instead of stored data.hint/range/docare metadata for tools.
- jump_height¶
A declared property.
typecoerces assigned values (Vec3,float,str,bool, a color, or any callable);defaultmay be a value or a zero-arg factory. Flags:edit(shown in the inspector),save(written to the scene file),replicate(networked;on_repnames the callback),pin(exposed as a blueprint pin).fget/fsetmake the prop a view over engine state (the NodePath transform) instead of stored data.hint/range/docare metadata for tools.
- mouse_sensitivity¶
A declared property.
typecoerces assigned values (Vec3,float,str,bool, a color, or any callable);defaultmay be a value or a zero-arg factory. Flags:edit(shown in the inspector),save(written to the scene file),replicate(networked;on_repnames the callback),pin(exposed as a blueprint pin).fget/fsetmake the prop a view over engine state (the NodePath transform) instead of stored data.hint/range/docare metadata for tools.
- speed¶
A declared property.
typecoerces assigned values (Vec3,float,str,bool, a color, or any callable);defaultmay be a value or a zero-arg factory. Flags:edit(shown in the inspector),save(written to the scene file),replicate(networked;on_repnames the callback),pin(exposed as a blueprint pin).fget/fsetmake the prop a view over engine state (the NodePath transform) instead of stored data.hint/range/docare metadata for tools.