Draws a debug view of the physics components. More...

Import Statement: import VPlay 2.0



Detailed Description

This draws a debug view of all fixtures and joints of the physics simulation. PhysicsWorld automatically includes a DebugDraw item, so it normally does not have to be used manually.

Property Documentation

axisScale : real

Scale factor for drawing the DebugDraw.

Default value: 0.5

flags : DebugFlags

With this property the DebugDraw can be configured, which objects should be drawn. It can be any combination of the DebugFlags enum, for example to draw only bounding boxes and joints, use

 flags: DebugDraw.AABB | DebugDraw.Joint

The default value is DebugDraw.Everything.

world : World

This holds the world for which the debug view is shown.

It is by default set to Box2D::defaultWorld.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support