import PhysicsHandler from './physicsHandler' ; import RayInput from '../ray-input/ray-input' ; import { Mesh } from 'three' ; export default class PhysicsWithRayInputHandler extends PhysicsHandler { private readonly rayInput : RayInput ; constructor ( rayInput ) { super ( ) ; this . rayInput = rayInput ; } addMesh ( mesh ) { super . addMesh ( mesh ) ; this . rayInput . add ( mesh ) ; } }