Tesseract Engine Documentation

GameObject.ObjectCollisionResponse Method 

Default behavior applies force based physics for rebound. Override to supplement behavior. Return true if collidedObject is absorbed or destroyed, else false.

public virtual bool ObjectCollisionResponse(
   GameObject collidedObject,
   Vector3 resultantForce,
   ObjectLibrary objectLibrary
);

Parameters

collidedObject
GameObject that collided with this GameObject.
resultantForce
The force applied by the colliding GameObject to this GameObject
objectLibrary
ObjectLibrary that this object belongs to.

Return Value

True = this object has to be recycled

See Also

GameObject Class | DarkWynter.Engine.GameObjects Namespace