Public Attributes | |
bool | renderGravityWell = true |
float | gravityAtWellEdge = 1 |
WorldObject | debugTarget = null |
float | gravityOnDebugTarget = 0 |
Wraps debugging settings in the inspector
This is a subclass specifically created for tabbed variables in the Unity inspector.
WorldObject World.DebugSettings.debugTarget = null |
A WorldObject within the WorldPhysicsSystem
This is the WorldObject that some specific debug information applies to. If it is null, no debug information will be generated.
float World.DebugSettings.gravityAtWellEdge = 1 |
The value which dtermines how to render the gravity well
If renderGravityWell is true, the world will render it's gravity well such that at the edge of the well the effective strength of gravity will equal this value.
float World.DebugSettings.gravityOnDebugTarget = 0 |
The effective gravity exerted by this world on the debugTarget
This is a read-only value which can be used to fine tune the strength of gravity on specific WorldObjects. If the debugTarget is null, this value is non applicable. If the WorldPhysicsSystem is null, this can not be calculated. If no calaculation is possible, it is set to -1.
bool World.DebugSettings.renderGravityWell = true |
Flag for rendering gravity well
If true, the world will render it's gravity well such that at the edge of the well the effective strength of gravity will equal the variable "gravityAtWellEdge".