C# Class FruityFalls.Geometry.CollisionResponse

Exibir arquivo Open project: xamarin/mobile-samples

Public Methods

Method Description
ApplyBounce ( CCPoint object1Velocity, CCPoint object2Velocity, CCPoint normal, float elasticity ) : CCPoint
GetSeparationVector ( Circle circle, Polygon polygon ) : CCPoint

Private Methods

Method Description
Reflect ( CCPoint vectorToReflect, CCPoint surfaceToReflectOn ) : CCPoint

Method Details

ApplyBounce() public static method

public static ApplyBounce ( CCPoint object1Velocity, CCPoint object2Velocity, CCPoint normal, float elasticity ) : CCPoint
object1Velocity CCPoint
object2Velocity CCPoint
normal CCPoint
elasticity float
return CCPoint

GetSeparationVector() public static method

public static GetSeparationVector ( Circle circle, Polygon polygon ) : CCPoint
circle Circle
polygon Polygon
return CCPoint