Skip to content

Commit

Permalink
chores: Clean up left over test code, remove debug statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
HunterBarclay committed Sep 16, 2024
1 parent 78f7f3b commit c875a15
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,6 @@ def getMaterialAppearance(

properties = fusionAppearance.appearanceProperties

arr = []
for x in range(properties.count):
arr.append(properties.item(x))

roughnessProp = properties.itemById("surface_roughness")
if roughnessProp:
appearance.roughness = roughnessProp.value
Expand Down
2 changes: 0 additions & 2 deletions fission/src/mirabuf/MirabufInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@ class MirabufInstance {
const [hex, opacity] =
A && B && G && R ? [(A << 24) | (R << 16) | (G << 8) | B, A / 255.0] : [0xe32b50, 1.0]

console.debug(`${appearance.metallic}, ${appearance.roughness}`)

const material =
materialStyle === MaterialStyle.Regular
? new THREE.MeshStandardMaterial({
Expand Down
12 changes: 0 additions & 12 deletions fission/src/systems/physics/PhysicsSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -714,18 +714,10 @@ class PhysicsSystem extends WorldSystem {
JOLT.destroy(partMax)
JOLT.destroy(transform)

// Set friction override once to any of the parts' values
console.debug(
`Physical Material: ${partInstance.physicalMaterial}, Part Name: ${partInstance.info?.name}`
)
const physicalMaterial =
parser.assembly.data!.materials!.physicalMaterials![
partInstance.physicalMaterial ?? DEFAULT_PHYSICAL_MATERIAL_KEY
]
console.debug(physicalMaterial)
console.debug(
`Override: ${partDefinition?.frictionOverride == null || partDefinition?.frictionOverride == undefined}`
)

let frictionOverride: number | undefined =
partDefinition?.frictionOverride == null ? undefined : partDefinition?.frictionOverride
Expand All @@ -748,9 +740,6 @@ class PhysicsSystem extends WorldSystem {
weight: partDefinition.physicalData?.area ?? 1.0,
}
frictionAccum.push(frictionPairing)
console.debug(
`(${frictionPairing.dynamic.toFixed(3)}, ${frictionPairing.static.toFixed(3)}) [${frictionPairing.weight.toFixed(3)}]`
)

if (!partDefinition.physicalData?.com || !partDefinition.physicalData.mass) return

Expand Down Expand Up @@ -803,7 +792,6 @@ class PhysicsSystem extends WorldSystem {
// I guess this is an okay substitute.
const friction = (staticFriction + dynamicFriction) / 2.0
body.SetFriction(friction)
console.debug(`Friction: ${friction}`)

// Little testing components
this._bodies.push(body.GetID())
Expand Down

0 comments on commit c875a15

Please sign in to comment.