Skip to content

Commit

Permalink
fix cart body index fight issue
Browse files Browse the repository at this point in the history
  • Loading branch information
leey611 committed Dec 14, 2023
1 parent 75561a2 commit 5065973
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FoodCart.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ function FoodCart(props) {

AnimationTimeline.to(
cartBodyRef.current.position,
{y: 150, duration: AnimationTimings.Wait35 },
{y: 150, z: position[2] - 0.1, duration: AnimationTimings.Wait35 },
"wait-35"
);
AnimationTimeline.to(
Expand Down Expand Up @@ -391,7 +391,7 @@ function FoodCart(props) {
);
AnimationTimeline.to(
cartBodyRef.current.position,
{y: -54, duration: AnimationTimings.WaitEnd },
{y: -54, duration: AnimationTimings.WaitEnd },
"wait-end"
);
AnimationTimeline.to(
Expand Down Expand Up @@ -426,7 +426,7 @@ function FoodCart(props) {
return (
<group>
<primitive object={cartBody} position={position} rotation={rotation} scale={scale} ref={cartBodyRef}></primitive>
<primitive object={cartBodyHighlight} position={[position[0]+0.1, position[1]+0.1, position[2]+0.1]} rotation={rotation} scale={scale} ref={cartBodyHighlightRef}>
<primitive object={cartBodyHighlight} position={position} rotation={rotation} scale={scale} ref={cartBodyHighlightRef}>
</primitive>

<primitive object={chassisAndItems} position={position} rotation={rotation} scale={scale} ref={chassisAndItemsRef}></primitive>
Expand Down

0 comments on commit 5065973

Please sign in to comment.