C# Class Protogame.PhysicsCollisionBeginEvent

An event that signals that two rigid bodies have started colliding in the game.
Inheritance: PhysicsEvent
显示文件 Open project: RedpointGames/Protogame Class Usage Examples

Public Methods

Method Description
PhysicsCollisionBeginEvent ( IGameContext gameContext, IServerContext serverContext, IUpdateContext updateContext, RigidBody body1, RigidBody body2, object owner1, object owner2 ) : Jitter.Dynamics

Initializes a new instance of a PhysicsCollisionBeginEvent. This constructor is intended to be used internally within the engine.

Method Details

PhysicsCollisionBeginEvent() public method

Initializes a new instance of a PhysicsCollisionBeginEvent. This constructor is intended to be used internally within the engine.
public PhysicsCollisionBeginEvent ( IGameContext gameContext, IServerContext serverContext, IUpdateContext updateContext, RigidBody body1, RigidBody body2, object owner1, object owner2 ) : Jitter.Dynamics
gameContext IGameContext The current game context, or null if running on a server.
serverContext IServerContext The current server context, or null if running on a client.
updateContext IUpdateContext The current update context.
body1 RigidBody The first body involved in the collision.
body2 RigidBody The second body involved in the collision.
owner1 object The owner of the first body.
owner2 object The owner of the second body.
return Jitter.Dynamics