Jump to content

Search the Community

Showing results for tags 'rotate move mesh physics'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Hello, I need to be able to rotate and move my mesh, which has a physics state body set, keeping its physical simulation. It seems that when I set a physics state on the mesh, I'm unable to rotate it or move it directly. I've created an example here: http://www.babylonjs-playground.com/#UMR7M#44 Invoking setPhysicsState prevents direct modification of rotation and position. How can I achieve this? Should I keep a reference to the underlying physics body and modify it directly? On my own code I even tried: mesh.rotationQuaternion = BABYLON.Quaternion.RotationYawPitchRoll( Math.radians(gameState.mesh.gamma), Math.radians(gameState.mesh.beta), Math.radians(gameState.mesh.alpha) ); mesh.updatePhysicsBodyPosition();But yet, had no luck with it: the mesh is stucked at its initial angle. It is a week I'm playing with BabylonJS and it is outstanding what I have already achieved, keep up the great work! Thank you in advance. joez
×
×
  • Create New...