Skip to content

Commit

Permalink
also expose flange in robot wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
bompo committed Oct 7, 2024
1 parent 6f8b375 commit b8d61e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/robots/Robot.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { type GroupProps } from "@react-three/fiber"

import type { ConnectedMotionGroup } from "@wandelbots/wandelbots-js"
import type { Group } from "three"
import { defaultGetModel, SupportedRobot } from "./SupportedRobot"

export type RobotProps = {
connectedMotionGroup: ConnectedMotionGroup
getModel?: (modelFromController: string) => string
isGhost?: boolean
flangeRef?: React.MutableRefObject<Group>
} & GroupProps

/**
Expand All @@ -24,6 +26,7 @@ export function Robot({
connectedMotionGroup,
getModel = defaultGetModel,
isGhost = false,
flangeRef,
...props
}: RobotProps) {
if (!connectedMotionGroup.dhParameters) {
Expand All @@ -39,6 +42,7 @@ export function Robot({
dhParameters={connectedMotionGroup.dhParameters}
getModel={getModel}
isGhost={isGhost}
flangeRef={flangeRef}
{...props}
/>
)
Expand Down

0 comments on commit b8d61e6

Please sign in to comment.