Ejemplo n.º 1
0
    private bool OnCollisionEvent(FSFixture fixtureA, FSFixture fixtureB, Contact contact)
    {
        FSBody bodyB = fixtureB.Body;
        //if (bodyB.UserTag == "Respawn") {
        FVector2 normal;

        FarseerPhysics.Common.FixedArray2 <FVector2> contactPoints;
        contact.GetWorldManifold(out normal, out contactPoints);
        bodyB.SetTransform(FSHelper.Vector3ToFVector2(RespawnPosition.position), 0f);
        bodyB.ResetDynamics();
        //}
        return(true);
    }