diff --git a/packages/3d-web-client-core/src/collisions/CollisionsManager.ts b/packages/3d-web-client-core/src/collisions/CollisionsManager.ts index 6a7fd6c8..fe6d9c39 100644 --- a/packages/3d-web-client-core/src/collisions/CollisionsManager.ts +++ b/packages/3d-web-client-core/src/collisions/CollisionsManager.ts @@ -226,7 +226,9 @@ export class CollisionsManager { // and the triangle if (realDistance < capsuleRadius) { if (!collisionPosition) { - collisionPosition = new Vector3().copy(closestPointOnSegment); + collisionPosition = new Vector3() + .copy(closestPointOnSegment) + .applyMatrix4(meshState.matrix); } // Calculate the ratio between the real distance and the mesh-space distance const ratio = realDistance / modelReferenceDistance;