WASDCamera_v2 Op

WASDCamera

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.


Full Name
  • Ops.Gl.Matrix.WASDCamera_v2
Visibility
  • Core Op - Official cables op
License
  • MIT
Authorgithub


INPUT PORTS


render (Trigger)

Trigger the op

Enable pointer lock (Number: boolean)

If true pointer lock can be enabled

Speed (Number)

Movement speed multiplier - default 1

Mouse Speed (Number)
Allow Flying (Number: boolean)

Allows vertical movement

Active (Number: boolean)

Move

Move X+ (Number: boolean)
Move X- (Number: boolean)
Move Y+ (Number: boolean)
Move Y- (Number: boolean)
Reset (Trigger)

OUTPUT PORTS


trigger (Trigger)

trigger out

isLocked (booleanNumber)

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

  • Examples
  • Public
  • My Patches

Changelog


Added speed control for camera speeduser avatarcables - 2019-08-09 15:49
added active toggle to completly disable ituser avatarpandur - 2022-01-31 09:07