C# Class FruityFalls.Geometry.CollisionResponse

Afficher le fichier Open project: xamarin/mobile-samples

Méthodes publiques

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

Private Methods

Méthode Description
Reflect ( CCPoint vectorToReflect, CCPoint surfaceToReflectOn ) : CCPoint

Method Details

ApplyBounce() public static méthode

public static ApplyBounce ( CCPoint object1Velocity, CCPoint object2Velocity, CCPoint normal, float elasticity ) : CCPoint
object1Velocity CCPoint
object2Velocity CCPoint
normal CCPoint
elasticity float
Résultat CCPoint

GetSeparationVector() public static méthode

public static GetSeparationVector ( Circle circle, Polygon polygon ) : CCPoint
circle Circle
polygon Polygon
Résultat CCPoint