#include <PhysicsCollisionObject.h>
Public Member Functions | |
~ScriptListener () | |
void | collisionEvent (PhysicsCollisionObject::CollisionListener::EventType type, const PhysicsCollisionObject::CollisionPair &collisionPair, const Vector3 &contactPointA, const Vector3 &contactPointB) |
Static Public Member Functions | |
static ScriptListener * | create (const char *url) |
Public Attributes | |
std::string | url |
Script * | script |
std::string | function |
Handles collision event callbacks to Lua script functions.
void gameplay::PhysicsCollisionObject::ScriptListener::collisionEvent | ( | PhysicsCollisionObject::CollisionListener::EventType | type, |
const PhysicsCollisionObject::CollisionPair & | collisionPair, | ||
const Vector3 & | contactPointA, | ||
const Vector3 & | contactPointB | ||
) | [virtual] |
static ScriptListener* gameplay::PhysicsCollisionObject::ScriptListener::create | ( | const char * | url | ) | [static] |
Creates a ScriptListener for the given script function url.
url | The global script function, or script::function. |
The name of the Lua script function to use as the callback.
The loaded script that contains the function.
The URL to the Lua script function to use as the callback.