mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-12-30 03:42:17 +00:00
Fix wack collision bug
This commit is contained in:
parent
7b7d07707c
commit
be2cf33ed6
1 changed files with 1 additions and 1 deletions
|
|
@ -451,7 +451,7 @@ class Marble extends GameObject {
|
|||
var soFar = 0.0;
|
||||
for (k in 0...contacts.length) {
|
||||
if (contacts[k].contactDistance < this._radius) {
|
||||
var timeToSeparate = 0.01666;
|
||||
var timeToSeparate = 0.1;
|
||||
var dist = contacts[k].contactDistance; // contacts[k].penetration;
|
||||
if (dist >= 0) {
|
||||
var flag1 = this.velocity.sub(contacts[k].velocity).add(dir.multiply(soFar)).dot(contacts[k].normal) * timeToSeparate;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue