cables is under heavy development.
There might be one or another bug, please let us know about it!

WASDCamera_v2 Op

Namespace: Ops.Gl.Matrix

Op author: pandur

simple camera you control with W,A,S,D keys like in a FPS game

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.


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 X+ (boolean /Number)
Move X- (boolean /Number)
Move Y+ (boolean /Number)
Move Y- (boolean /Number)
Reset (Trigger)


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

Caught a mistake or want to contribute to the documentation?

Edit Documentation 

wasd and physic picking

Patches using WASDCamera_v2

  • Examples
  • Public
  • My Patches


Added speed control for camera speed
2019-08-09 - cables
added active toggle to completly disable it
2022-01-31 - pandur