Enable Physics for 3D Scenes
-
Introduction
For 3D projects, you can enable physics in the entire scene, which allows you to use a physics engine to control objects and simulate real-world objects.
Enable Physics
To enable physics in a 3D scene, you need to initialize that scene first, then run the following block:
This block takes one input parameter “gravity”. If it is negative, the objects will be pulled down toward the negative Z direction. If it is positive, then objects will rise toward the positive Z direction. By default, the gravity is set to -100.Note that gravity is not the same as speed. If an object’s speed is 100, it will keep moving at the same speed. However, if the gravity is 100, then the object will move faster and faster.
Notes
Note that after enabling physics for a scene, you will not see any difference right away. You will still need to enable physics for individual objects in the scene to see the effect of physics simulation. By default, no object has physics enabled for them.