C# 클래스 FruityFalls.Geometry.CollisionResponse

파일 보기 프로젝트 열기: xamarin/mobile-samples

공개 메소드들

메소드 설명
ApplyBounce ( CCPoint object1Velocity, CCPoint object2Velocity, CCPoint normal, float elasticity ) : CCPoint
GetSeparationVector ( Circle circle, Polygon polygon ) : CCPoint

비공개 메소드들

메소드 설명
Reflect ( CCPoint vectorToReflect, CCPoint surfaceToReflectOn ) : CCPoint

메소드 상세

ApplyBounce() 공개 정적인 메소드

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

GetSeparationVector() 공개 정적인 메소드

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