refactor: Update material default value and remove console logs for cleaner output
This commit is contained in:
parent
0ba771907a
commit
c0e0bcb69d
|
@ -245,7 +245,7 @@ function processLoadedModel(
|
||||||
actionUuid: THREE.MathUtils.generateUUID(),
|
actionUuid: THREE.MathUtils.generateUUID(),
|
||||||
actionName: `Action ${index + 1}`,
|
actionName: `Action ${index + 1}`,
|
||||||
actionType: 'default',
|
actionType: 'default',
|
||||||
material: 'inherit',
|
material: 'Default material',
|
||||||
delay: 0,
|
delay: 0,
|
||||||
spawnInterval: 5,
|
spawnInterval: 5,
|
||||||
spawnCount: 1,
|
spawnCount: 1,
|
||||||
|
|
|
@ -7,12 +7,12 @@ import { useArmBotStore } from '../../../../../store/simulation/useArmBotStore';
|
||||||
function RoboticArmInstance({ armBot }: any) {
|
function RoboticArmInstance({ armBot }: any) {
|
||||||
const { isPlaying } = usePlayButtonStore();
|
const { isPlaying } = usePlayButtonStore();
|
||||||
const [currentPhase, setCurrentPhase] = useState<(string)>("init");
|
const [currentPhase, setCurrentPhase] = useState<(string)>("init");
|
||||||
console.log('currentPhase: ', currentPhase);
|
// console.log('currentPhase: ', currentPhase);
|
||||||
const { armBots, addArmBot, addCurrentAction } = useArmBotStore();
|
const { armBots, addArmBot, addCurrentAction } = useArmBotStore();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
||||||
console.log('isPlaying: ', isPlaying);
|
// console.log('isPlaying: ', isPlaying);
|
||||||
if (isPlaying) {
|
if (isPlaying) {
|
||||||
//Moving armBot from initial point to rest position.
|
//Moving armBot from initial point to rest position.
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,9 @@ function RoboticArmInstances() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{
|
{
|
||||||
armBots?.map((robot: any) => (
|
armBots?.map((robot) => (
|
||||||
|
<RoboticArmInstance key={robot.modelUuid} armdetals={robot} />
|
||||||
<RoboticArmInstance armdetals={robot} />
|
))
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
</>
|
</>
|
||||||
|
|
|
@ -86,7 +86,7 @@ function RoboticArm() {
|
||||||
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log('armBots: ', armBots);
|
// console.log('armBots: ', armBots);
|
||||||
}, [armBots]);
|
}, [armBots]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -23,7 +23,7 @@ function Simulation() {
|
||||||
}, [events])
|
}, [events])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log('products: ', products);
|
// console.log('products: ', products);
|
||||||
}, [products])
|
}, [products])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue