Creating the debug for physics in FUDGE. Tell it to draw only wireframe objects, since FUDGE is handling rendering of the objects besides physics. Override OimoPhysics Functions with own rendering. Initialize buffers and connect them with the context for later use.
Static
uboStatic
uboSee EventTarget.addEventListener for reference. Works with EventListenerUnified and EventUnified
Optional
_options: boolean | AddEventListenerOptionsSee EventTarget.dispatchEvent for reference. Works with with EventUnified
See EventTarget.removeEventListener for reference. Works with EventListenerUnified and EventUnified
Optional
_options: boolean | AddEventListenerOptionsReceive the current DebugMode from the physics settings and set the OimoPhysics.DebugDraw booleans to show only certain informations. Needed since some debug informations exclude others, and can't be drawn at the same time, by OimoPhysics. And for users it provides more readability to debug only what they need and is commonly debugged.
Static
addStatic
adjustStatic
assertStatic
clearStatic
dispatchStatic
getStatic
getStatic
getStatic
getStatic
initializeStatic
initializeStatic
pointRead the (world) position from the pixel at the given point on the render-rectangle (origin top left). ⚠️ CAUTION: Currently only works when ambient occlusion is active due to writing to the position texture being disabled otherwise.
Static
removeStatic
resetStatic
setSet the blend mode to render with
Static
setStatic
setStatic
setStatic
setSet the area on the offscreen-canvas to render the camera image to.
Static
setStatic
set
Internal Class used to draw debugInformations about the physics simulation onto the renderContext. No user interaction needed.
Author
Marko Fehrenbach, HFU 2020 //Based on OimoPhysics Haxe DebugDrawDemo