Метод | Описание | |
---|---|---|
ApplyBounce ( CCPoint object1Velocity, CCPoint object2Velocity, CCPoint normal, float elasticity ) : CCPoint | ||
GetSeparationVector ( |
Метод | Описание | |
---|---|---|
Reflect ( CCPoint vectorToReflect, CCPoint surfaceToReflectOn ) : CCPoint |
public static ApplyBounce ( CCPoint object1Velocity, CCPoint object2Velocity, CCPoint normal, float elasticity ) : CCPoint | ||
object1Velocity | CCPoint | |
object2Velocity | CCPoint | |
normal | CCPoint | |
elasticity | float | |
Результат | CCPoint |
public static GetSeparationVector ( |
||
circle | ||
polygon | ||
Результат | CCPoint |