Skip to content

Commit 50b923d

Browse files
fix: gamepiece dropping + random collisions
1 parent ba71d9a commit 50b923d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

fission/src/mirabuf/EjectableSceneObject.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,11 @@ class EjectableSceneObject extends SceneObject {
127127
// gradual acceleration via easedT
128128
desiredPosition = new THREE.Vector3().lerpVectors(this._startTranslation, desiredPosition, easedT)
129129
desiredRotation = new THREE.Quaternion().copy(this._startRotation).slerp(desiredRotation, easedT)
130-
} else if (t >= 1) {
131-
// snap instantly and re-enable physics
132-
World.physicsSystem.enablePhysicsForBody(this._gamePieceBodyId)
133130
}
131+
// } else if (t >= 1) {
132+
// // snap instantly and re-enable physics
133+
// World.physicsSystem.enablePhysicsForBody(this._gamePieceBodyId)
134+
// }
134135

135136
// apply the transform
136137
desiredTransform.identity().compose(desiredPosition, desiredRotation, new THREE.Vector3(1, 1, 1))

0 commit comments

Comments
 (0)