How to use the react-babylonjs.withScene function in react-babylonjs

To help you get started, we’ve selected a few react-babylonjs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github brianzinn / create-react-app-babylonjs / src / remixMeshMashup / MashupButton.jsx View on Github external
}
    } else {
       console.error('onControlAdded(): no host instance -> mesh -> material', button3d)
    }
}

const MashupButton = (props) => (
    
        
            <img height="180px" width="180px" name="{`img-${props.text}`}">
            
        
    
)

export default withScene(MashupButton)
github brianzinn / create-react-app-babylonjs / src / ScaledModelWithProgress.js View on Github external
position={new Vector3(this.props.scaleTo / 2, 0, this.props.scaleTo/60)}
                            setPivotMatrix={ [ Matrix.Translation(-this.props.scaleTo, 0, 0) ] }
                            setPreTransformMatrix={ [ Matrix.Translation(-this.props.scaleTo / 2, 0, 0) ] }&gt;
                            
                        
                        
                    
                }
            
        )
    }
}

export default withScene(ScaledModelWithProgress)

react-babylonjs

React for Babylon.js

MIT
Latest version published 1 month ago

Package Health Score

76 / 100
Full package analysis