simple camera you control with W,A,S,D keys like in a FPS game
summary (oneliner)
Click in the canvas to enable the wasd camera, this also enables the pointerlock.
Press escape to disable the pointerlock and regain control of the mouse.
doc
issues
example patch id
youtube ids (comma seperated)
caniuse query
collections
Inputs
render (Trigger)
Trigger the op
Enable pointer lock (boolean /Number)
If true pointer lock can be enabled
Speed (Number)
Movement speed multiplier - default 1
Mouse Speed (Number)
Allow Flying (boolean /Number)
Allows vertical movement
Active (boolean /Number)
Move
Move X+ (boolean /Number)
Move X- (boolean /Number)
Move Y+ (boolean /Number)
Move Y- (boolean /Number)
Reset (Trigger)
Outputs
trigger (Trigger)
trigger out
isLocked (Number)
If pointer lock is active this is true
posX (Number)
X position in space
posY (Number)
Y position in space
posZ (Number)
Z position in space
Mouse Left (Trigger)
Trigger out on left mouse button down
Mouse Right (Trigger)
Trigger out on right mouse button down
Dir X (Number)
Direction of camera X
Dir Y (Number)
Direction of camera Y
Dir Z (Number)
Direction of camera Z
Patches using WASDCamera_v2
Changelog
Added speed control for camera speed 2019-08-09 - cables | |
added active toggle to completly disable it 2022-01-31 - pandur |