Discuss about rvx, rvy in collection-map.js
there is a function with arguments named rvx, rvy , What do they mean? what's the full name ?
|
_traceStep: function( res, x, y, vx, vy, width, height, rvx, rvy, step ) { |
the _traceStep() be called with vx & vy
|
this._traceStep( res, x, y, sx, sy, objectWidth, objectHeight, vx, vy, i ); |
Why do you pass vx , vy ? in my opinion , at line 44 , It should pass sx ,sy
the function _traceStep has arguments rvx, rvy , and pass them into _checkTileDef()
|
this._checkTileDef(res, t, x, y, rvx, rvy, width, height, prevTileX, tileY) |
|
(t > 1 && this._checkTileDef(res, t, x, y, rvx, rvy, width, height, tileX, tileY)) // slope? |
|
this._checkTileDef(res, t, x, y, rvx, rvy, width, height, tileX, prevTileY) ) { |
|
(t > 1 && this._checkTileDef(res, t, x, y, rvx, rvy, width, height, tileX, tileY)) // slope? |
Why do you pass rvx , rvy ? in my opinion , at line 44 , It should pass vx ,vy.
I post a PR , Just for comparing the differences in the code
https://github.com/phoboslab/Impact/pull/100/files
If change the code to my version, will there be any problems?
Discuss about
rvx, rvyincollection-map.jsthere is a function with arguments named
rvx, rvy, What do they mean? what's the full name ?Impact/lib/impact/collision-map.js
Line 63 in 7768fd2
the
_traceStep()be called with vx & vyImpact/lib/impact/collision-map.js
Line 44 in 7768fd2
Why do you pass
vx , vy? in my opinion , at line 44 , It should passsx ,sythe function
_traceStephas argumentsrvx, rvy, and pass them into_checkTileDef()Impact/lib/impact/collision-map.js
Line 95 in 7768fd2
Impact/lib/impact/collision-map.js
Line 104 in 7768fd2
Impact/lib/impact/collision-map.js
Line 142 in 7768fd2
Impact/lib/impact/collision-map.js
Line 150 in 7768fd2
Why do you pass
rvx , rvy? in my opinion , at line 44 , It should passvx ,vy.I post a PR , Just for comparing the differences in the code
https://github.com/phoboslab/Impact/pull/100/files
If change the code to my version, will there be any problems?