All Classes Files Functions Variables Enumerations
Public Attributes | List of all members
World.DebugSettings Class Reference

Public Attributes

bool renderGravityWell = true
float gravityAtWellEdge = 1
WorldObject debugTarget = null
float gravityOnDebugTarget = 0

Detailed Description

Wraps debugging settings in the inspector

This is a subclass specifically created for tabbed variables in the Unity inspector.

Member Data Documentation

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.

See Also
gravityOnDebugTarget
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.

See Also
renderGravityWell
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.

See Also
gravityOnDebugTarget
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".

See Also
gravityAtWellEdge

The documentation for this class was generated from the following file: