Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render () {
let dialogWidth = 3
let dialogHeight = 1
return (
{
let { plane } = this.state
if (plane) {
let forwardRay = camera.getForwardRay()
plane.position = camera.position.clone().add(forwardRay.direction.scale(1.5 / camera.fov /* * forwardRay.length */))
plane.lookAt(camera.position, 0, Math.PI, Math.PI)
}
}}
/>
const sphereRef = useCallback(node => {
sphere = node.hostInstance;
}, []);
return (
<div>
<header>
<p>@babylonjs + `react-babylonjs`</p>
</header></div>
default: () => Vector3.Zero(),
};
const BouncyPlayground = () => {
const sphereRef = useCallback(node => {
sphere = node.hostInstance;
}, []);
return (
render () {
let baseUrl = 'https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/'
return (
)
}
}