The collisions/ gravity example shows you how to add gravity and collision detection to a script so that you will go up and down ramps or enable falling
To add to any script use this code:
fromsightlab_utilsimportcollision#After yield viztask.waitEvent(TRIAL_START) or yield sightlab.startTrial()c=collision.Collision()
Note if using full body tracking, the avatar may cause some issues with floating
#If this causes a large frame rate drop can change the update type from update to timerc.setHeavyUpdateType("timer",0.1)
For more information see Vizard documentation on Physics