mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 19:55:07 +02:00
include debug log in collision example
This commit is contained in:
parent
a5f618ef33
commit
d4e039ea7a
1 changed files with 6 additions and 0 deletions
|
@ -17,5 +17,11 @@
|
|||
this.collisionWithEntity = function(myID, otherID, collisionInfo) {
|
||||
Entities.editEntity(myID, { color: { red: getRandomInt(128,255), green: getRandomInt(128,255), blue: getRandomInt(128,255)} });
|
||||
print("collisionWithEntity() myID:" + myID + ", otherID:" + otherID);
|
||||
print(" collisionInfo.type:" + collisionInfo.type);
|
||||
print(" collisionInfo.idA:" + collisionInfo.idA);
|
||||
print(" collisionInfo.idB:" + collisionInfo.idA);
|
||||
Vec3.print(" collisionInfo.penetration:", collisionInfo.penetration);
|
||||
Vec3.print(" collisionInfo.contactPoint:", collisionInfo.contactPoint);
|
||||
Vec3.print(" collisionInfo.velocityChange:", collisionInfo.velocityChange);
|
||||
};
|
||||
})
|
Loading…
Reference in a new issue