Input to feed the controller.
Using a non-component input is valid, e.g.,
import {PlayerControllerInput} fromn '@wonderlandengine/interaction';
class Input implements PlayerControllerInput {
getRotationAxis(out: vec3) {
out[0] = 1.0;
}
}
controller.input = new Input();
Object containing the PlayerControllerInput to read inputs from.
If not provided, this component will create a default one.
Rotation speed multiplier.
Only used when transformType is RotationType.Smooth.
The number of degrees at which the player rotates when snap-rotating
Tracked space onto which the rotation is applied
Walk speed multiplier.
Static TypeStatic on
Simpler character controller for smooth locomotin.
It needs to have a physx component attached to it. And be on the root of the player hierarchy.
See
PlayerControllerInput for handling input from various input providers