How to use the @babylonjs/core/Maths/math.Vector3.Up function in @babylonjs/core

To help you get started, we’ve selected a few @babylonjs/core 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 / react-babylonjs / stories / babylonjs / 4-advanced / remix.stories.js View on Github external
render () {
      return (
        
          
            
            
            
            
              
                {
                  this.state.results.map(result => {
                    if (result.type === 'board' || result.type === 'creation') {
                      var buttonText = result.item.name + (result.item.hasAnimations ? ' *' : '')
                      var fontSize = buttonText.length <= 12 ? 36 : (buttonText.length <= 20 ? 24 : 20) // TODO: ctx.measureText(...)
                      return (
                         {
                            if (result.type === 'board') {
                              this.getItems(`https://api.remix3d.com/v3/boards/${result.item.id}`, 'boards', this.state.headers)
                            } else if (result.type === 'creation') {
github brianzinn / react-babylonjs / stories / babylonjs / 1-basic / skybox.stories.js View on Github external
function WithSkybox () {
  const [skyboxIndex, setIndex] = useState(0)
  globalIndex = skyboxIndex

  return (
    
      
        
        
        
        
          
            {
              Array.from(new Array(50), (_, index) => index).map(number => {
                return (
                   setIndex(globalIndex + 1)}
                  />
                )