Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Created November 24, 2022 04:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flushpot1125/522448c4eac5f427b7d0987716daf620 to your computer and use it in GitHub Desktop.
Save flushpot1125/522448c4eac5f427b7d0987716daf620 to your computer and use it in GitHub Desktop.
scene.enablePhysics();
var physicsEngine = scene.getPhysicsEngine();
gravity = new BABYLON.Vector3(0,0,0);
physicsEngine.setGravity(gravity);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment