mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
changed function( to function (
This commit is contained in:
parent
26f3d22db7
commit
7e5eeb0a27
36 changed files with 209 additions and 209 deletions
12
app/Game/Core/Collision/Detector.js
Normal file → Executable file
12
app/Game/Core/Collision/Detector.js
Normal file → Executable file
|
|
@ -3,7 +3,7 @@ define([
|
|||
"Game/Core/Collision/Detector"
|
||||
],
|
||||
|
||||
function(Box2D, Parent) {
|
||||
function (Box2D, Parent) {
|
||||
|
||||
function Detector() {
|
||||
this.listener = new Box2D.Dynamics.b2ContactListener();
|
||||
|
|
@ -22,25 +22,25 @@ function(Box2D, Parent) {
|
|||
PLAYER_FOOT_SENSOR: 'footsensor'
|
||||
}
|
||||
|
||||
Detector.prototype.getListener = function() {
|
||||
Detector.prototype.getListener = function () {
|
||||
return this.listener;
|
||||
}
|
||||
|
||||
Detector.prototype.handleStand = function(point, isColliding) {
|
||||
Detector.prototype.handleStand = function (point, isColliding) {
|
||||
throw "Overwrite this function";
|
||||
}
|
||||
|
||||
/** Extension **/
|
||||
|
||||
Detector.prototype.BeginContact = function(point) {
|
||||
Detector.prototype.BeginContact = function (point) {
|
||||
this.chuckDetector.handleStand(point, true);
|
||||
}
|
||||
|
||||
Detector.prototype.PostSolve = function(point, impulse) {
|
||||
Detector.prototype.PostSolve = function (point, impulse) {
|
||||
this.chuckDetector.handleStand(point, true);
|
||||
}
|
||||
|
||||
Detector.prototype.EndContact = function(point) {
|
||||
Detector.prototype.EndContact = function (point) {
|
||||
this.chuckDetector.handleStand(point, false);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue