WalkDriveLogic ​
Inherits: DriveLogic < Resource
The way a horse is steered: the keys move the mount relative to the camera (W goes away from the camera) and the mount turns to face where it goes. When the mount swims or flies W goes where the camera looks, up and down included, and jump and crouch go up and down.
Properties ​
float | turn_speed | 10.0 |
Methods ​
Dictionary | get_field_descriptions() |
String | get_drive_type_name() |
String | get_drive_type_description() |
void | drive( input: Vector2, delta: float ) |
Property descriptions ​
float turn_speed = 10.0 ​
How fast (radians per second) the mount turns to face where it goes
Method descriptions ​
Dictionary get_field_descriptions() ​
The sentences the editor shows as tooltips: {name of an exported variable: text}. A logic of your own adds its variables (call super and merge) (from DriveLogic)
String get_drive_type_name() ​
What this logic is called in the editor list (from DriveLogic)
String get_drive_type_description() ​
A sentence about how this logic steers, for the editor (from DriveLogic)
void drive( input: Vector2, delta: float ) ​
Every physics frame while the rider is on. input is the move keys (x right, y forward, each -1 to 1), zero when the player does not steer this rider. Override this (from DriveLogic)