You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 24, 2021. It is now read-only.
Jeremy Lorelli edited this page May 11, 2020
·
1 revision
VPhysics Extensions and Additions
This page will document any changes made to vphysics (that need documenting at least).
Extra Commands
Command
Description
vphysics_show_velocity
Enables a simple velocity vector display
vphysics_draw_hud
Draws a simple debug hud
vphysics_enable_step_mode
Enables physics simulation stepping
vphysics_step
Steps the physics simulation
vphysics_step_time
The step duration
vphysics_pause_simulation
Pauses the physics simulation
vphysics_unpause_simulation
Resumes the physics sim
Physics Stepping
Physics can be stepped to better examine behaviour of things. The step mode can be enabled using vphysics_enable_step_mode. When in step mode, the physics will pause unless stepped using vphysics_step.
Running vphysics_step will allow the physics simulation to run for the amount of time specified by vphysics_step_time.