-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added collision shapes for a variety of existing meshes Added wireframe property to items and hulls
- Loading branch information
1 parent
71445e1
commit 0e1269d
Showing
31 changed files
with
336 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"use strict"; | ||
|
||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = Model; | ||
|
||
var _drei = require("@react-three/drei"); | ||
|
||
var _AssemblyJigCollision = _interopRequireDefault(require("../../Meshes/Other/AssemblyJigCollision.glb")); | ||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
|
||
function Model(props) { | ||
var _useGLTF = (0, _drei.useGLTF)(_AssemblyJigCollision.default), | ||
nodes = _useGLTF.nodes; | ||
|
||
return [{ | ||
type: 'group', | ||
rotation: [Math.PI, 0, 0], | ||
children: [{ | ||
type: 'raw', | ||
geometry: nodes.mesh_0.geometry, | ||
material: nodes.mesh_0.material, | ||
scale: [5, 5, 5] | ||
}] | ||
}]; | ||
} | ||
|
||
_drei.useGLTF.preload(_AssemblyJigCollision.default); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
"use strict"; | ||
|
||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = Model; | ||
|
||
var _drei = require("@react-three/drei"); | ||
|
||
var _ConveyorCollision = _interopRequireDefault(require("../../Meshes/Other/ConveyorCollision.glb")); | ||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
|
||
function Model(props) { | ||
var _useGLTF = (0, _drei.useGLTF)(_ConveyorCollision.default), | ||
nodes = _useGLTF.nodes; | ||
|
||
return [{ | ||
type: 'group', | ||
rotation: [-Math.PI / 2, 0, 0], | ||
children: [{ | ||
type: 'raw', | ||
geometry: nodes.mesh_0.geometry, | ||
material: nodes.mesh_0.material | ||
}] | ||
}]; | ||
} | ||
|
||
_drei.useGLTF.preload(_ConveyorCollision.default); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
"use strict"; | ||
|
||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = Model; | ||
|
||
var _drei = require("@react-three/drei"); | ||
|
||
var _ConveyorDispatcherCollision = _interopRequireDefault(require("../../Meshes/Other/ConveyorDispatcherCollision.glb")); | ||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
|
||
function Model(props) { | ||
var _useGLTF = (0, _drei.useGLTF)(_ConveyorDispatcherCollision.default), | ||
nodes = _useGLTF.nodes; | ||
|
||
return [{ | ||
type: 'group', | ||
rotation: [-Math.PI / 2, 0, 0], | ||
children: [{ | ||
type: 'raw', | ||
geometry: nodes.mesh_0.geometry, | ||
material: nodes.mesh_0.material | ||
}] | ||
}]; | ||
} | ||
|
||
_drei.useGLTF.preload(_ConveyorDispatcherCollision.default); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
"use strict"; | ||
|
||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = Model; | ||
|
||
var _drei = require("@react-three/drei"); | ||
|
||
var _ConveyorReceiverCollision = _interopRequireDefault(require("../../Meshes/Other/ConveyorReceiverCollision.glb")); | ||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
|
||
function Model(props) { | ||
var _useGLTF = (0, _drei.useGLTF)(_ConveyorReceiverCollision.default), | ||
nodes = _useGLTF.nodes; | ||
|
||
return [{ | ||
type: 'group', | ||
rotation: [-Math.PI / 2, 0, 0], | ||
children: [{ | ||
type: 'raw', | ||
geometry: nodes.mesh_0.geometry, | ||
material: nodes.mesh_0.material | ||
}] | ||
}]; | ||
} | ||
|
||
_drei.useGLTF.preload(_ConveyorReceiverCollision.default); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { useGLTF } from '@react-three/drei' | ||
import AssemblyJigCollisionFile from '../../Meshes/Other/AssemblyJigCollision.glb'; | ||
|
||
export default function Model(props) { | ||
const { nodes } = useGLTF(AssemblyJigCollisionFile); | ||
return [ | ||
{ type: 'group', rotation: [Math.PI, 0, 0], children: [ | ||
{ | ||
type:'raw', | ||
geometry:nodes.mesh_0.geometry, | ||
material:nodes.mesh_0.material, | ||
scale:[5,5,5] | ||
} | ||
]} | ||
] | ||
} | ||
|
||
useGLTF.preload(AssemblyJigCollisionFile) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { useGLTF } from '@react-three/drei' | ||
import ConveyorCollisionFile from '../../Meshes/Other/ConveyorCollision.glb'; | ||
|
||
export default function Model(props) { | ||
const { nodes } = useGLTF(ConveyorCollisionFile); | ||
return [ | ||
{ type: 'group', rotation: [-Math.PI / 2, 0, 0], children: [ | ||
{ | ||
type:'raw', | ||
geometry:nodes.mesh_0.geometry, | ||
material:nodes.mesh_0.material | ||
} | ||
]} | ||
] | ||
} | ||
|
||
useGLTF.preload(ConveyorCollisionFile) |
17 changes: 17 additions & 0 deletions
17
src/components/MeshLoaders/Other/ConveyorDispatcherCollision.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { useGLTF } from '@react-three/drei' | ||
import ConveyorDispatcherCollisionFile from '../../Meshes/Other/ConveyorDispatcherCollision.glb'; | ||
|
||
export default function Model(props) { | ||
const { nodes } = useGLTF(ConveyorDispatcherCollisionFile); | ||
return [ | ||
{ type: 'group', rotation: [-Math.PI / 2, 0, 0], children: [ | ||
{ | ||
type:'raw', | ||
geometry:nodes.mesh_0.geometry, | ||
material:nodes.mesh_0.material | ||
} | ||
]} | ||
] | ||
} | ||
|
||
useGLTF.preload(ConveyorDispatcherCollisionFile) |
17 changes: 17 additions & 0 deletions
17
src/components/MeshLoaders/Other/ConveyorReceiverCollision.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { useGLTF } from '@react-three/drei' | ||
import ConveyorReceiverCollisionFile from '../../Meshes/Other/ConveyorReceiverCollision.glb'; | ||
|
||
export default function Model(props) { | ||
const { nodes } = useGLTF(ConveyorReceiverCollisionFile); | ||
return [ | ||
{ type: 'group', rotation: [-Math.PI / 2, 0, 0], children: [ | ||
{ | ||
type:'raw', | ||
geometry:nodes.mesh_0.geometry, | ||
material:nodes.mesh_0.material | ||
} | ||
]} | ||
] | ||
} | ||
|
||
useGLTF.preload(ConveyorReceiverCollisionFile) |
Oops, something went wrong.