Customise hands and laser (raycaster) for headsets in Cloud Editor

Hey

I have trouble to find how to customise the basic hands and lasers for headsets

Just having no more laser would be great

raycaster=“showLine: false;” and/or cursor=“fuse: false; rayOrigin: mouse;”> doesnt seems to work

I guess its possible as there is no more laser in Wol project

Thanks !

Hi! You’re looking for the hand-controls component from A-Frame.

Hi George and thank you for quick reply !

I tried this already but I cant override the default one
Even if I try to setup a new one it is just build on top of the default one

Would you mind showing your code?

Sure we can use the A-frame World template :


<!-- Copyright (c) 2022 8th Wall, Inc. -->
<!-- body.html is optional; elements will be added to your html body after app.js is loaded. -->

<a-scene
  xrextras-tap-recenter
  landing-page
  xrextras-loading
  xrextras-runtime-error
  xrextras-gesture-detector
  xrweb="allowedDevices: any; disableDefaultEnvironment: true; disableXrTablet: true;">

  <a-entity
    light="
      type: directional; 
      castShadow: true; 
      color: white; 
      intensity: 0.5"
    position="5 10 7">
  </a-entity>

  <a-light type="ambient" intensity="0.5"></a-light>

  <a-camera 
position="0 2 2" 
raycaster="showLine: false;" 
cursor="fuse: false; 
rayOrigin: mouse;">
  </a-camera>

  <a-entity
    id="leftHand"
    hand-controls="hand: left; handModelStyle: lowPoly; color: #ff0000">
  </a-entity>

  <a-box
    xrextras-one-finger-rotate
    position="0 0.5 0"
    material="
      color: #AD50FF; shader: flat; 
      src: https://cdn.8thwall.com/web/assets/cube-texture.png"
    shadow>
  </a-box>

  <a-plane
    height="2000"
    width="2000"
    rotation="-90 0 0"
    material="shader: shadow; opacity: 0.67"
    shadow>
  </a-plane>
</a-scene>

I tried raycaster=“showLine: false;”

I found this yesterday for custom texture on hands where @joshmao used threeJS (I didnt tried yet) but I still need some help to control the lasers display

Thank you again !