mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
Fix contact detection for jump mechanics
- Fix IsTouching() → isTouching() in Doll.js onFootSensorDetection - This should resolve the issue where players couldn't jump immediately after landing, as the contact detection was failing due to calling a non-existent method in Planck.js
This commit is contained in:
parent
55089d56cb
commit
955179eec9
1 changed files with 1 additions and 1 deletions
|
|
@ -411,7 +411,7 @@ function (Parent, Exception, planck, Settings, CollisionDetector, Item, nc, Asse
|
||||||
var edge = self.body.getContactList();
|
var edge = self.body.getContactList();
|
||||||
while (edge) {
|
while (edge) {
|
||||||
var contact = edge.contact;
|
var contact = edge.contact;
|
||||||
if(!contact.IsTouching()) {
|
if(!contact.isTouching()) {
|
||||||
edge = edge.next;
|
edge = edge.next;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue