mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
added angular throwing
This commit is contained in:
parent
9100215ceb
commit
d24ab60756
12 changed files with 93 additions and 34 deletions
|
|
@ -75,7 +75,7 @@ function (Nc) {
|
|||
}
|
||||
|
||||
Swiper.prototype.swipeEnd = function(x, y) {
|
||||
var spin = this.angleSum;
|
||||
var angularVelocity = this.angleSum;
|
||||
var length = this.lengthSum;
|
||||
var p0x = this.points[0].x;
|
||||
var p0y = this.points[0].y;
|
||||
|
|
@ -106,7 +106,7 @@ function (Nc) {
|
|||
return {
|
||||
x: direction.x * length / 100,
|
||||
y: direction.y * length / 100,
|
||||
spin: spin
|
||||
av: angularVelocity / 100
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue