Module.addPhysicsBody()

   
Type function
Library wattageTileEngine.Module.*
Return value VOID
Keywords  
See also  

Overview

This function adds a physics body to the module. This is not absolutely necessary if the application only uses a single module, but if multiple modules are being used in the engine, then adding physics bodies to the module will result in automatically activating/deactivating the physics objects when the module is activated/deactivated.

Syntax

Module.addPhysicsBody( physicsBody )
physicsBody (required)

DisplayObject. The physics body to add.

Examples

moduleInstance.addPhysicsBody(physicsBody)