mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 23:40:11 +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) {
|
this.collisionWithEntity = function(myID, otherID, collisionInfo) {
|
||||||
Entities.editEntity(myID, { color: { red: getRandomInt(128,255), green: getRandomInt(128,255), blue: getRandomInt(128,255)} });
|
Entities.editEntity(myID, { color: { red: getRandomInt(128,255), green: getRandomInt(128,255), blue: getRandomInt(128,255)} });
|
||||||
print("collisionWithEntity() myID:" + myID + ", otherID:" + otherID);
|
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