Пример #1
0
    private void SendCollisionMessage(Vector3 normal, PhysicsEntity obj, PhysicsEntity other)
    {
        var collisionInfo = new CollisionInfo(obj, other, normal);

        obj.SendMessage("OnCollide", collisionInfo, SendMessageOptions.DontRequireReceiver);
        other.SendMessage("OnCollide", collisionInfo.GetOtherInfo(), SendMessageOptions.DontRequireReceiver);
    }