WASDCamera_v2 Op

WASDCamera

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


<p>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.</p>


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


INPUT PORTS


render (Trigger)

<p>Trigger the op</p>

Enable pointer lock (Number:

<i>boolean</i>

)

<p>If true pointer lock can be enabled</p>

Speed (Number)

<p>Movement speed multiplier - default 1</p>

Mouse Speed (Number)
Allow Flying (Number:

<i>boolean</i>

)

<p>Allows vertical movement</p>

Active (Number:

<i>boolean</i>

)

Move

Move X+ (Number:

<i>boolean</i>

)

Move X- (Number:

<i>boolean</i>

)

Move Y+ (Number:

<i>boolean</i>

)

Move Y- (Number:

<i>boolean</i>

)

Reset (Trigger)

OUTPUT PORTS


trigger (Trigger)

<p>trigger out</p>

isLocked (

<i>boolean</i>

Number)

<p>If pointer lock is active this is true</p>

posX (Number)

<p>X position in space</p>

posY (Number)

<p>Y position in space</p>

posZ (Number)

<p>Z position in space</p>

Mouse Left (Trigger)

<p>Trigger out on left mouse button down</p>

Mouse Right (Trigger)

<p>Trigger out on right mouse button down</p>

Dir X (Number)

<p>Direction of camera X</p>

Dir Y (Number)

<p>Direction of camera Y</p>

Dir Z (Number)

<p>Direction of camera Z</p>


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