pillar jib animator added

This commit is contained in:
2025-08-07 14:53:20 +05:30
parent a08cec33ab
commit a1557001e6
3 changed files with 290 additions and 103 deletions

View File

@@ -1,14 +1,27 @@
import * as THREE from 'three'
import PillarJibAnimator from '../animator/pillarJibAnimator'
import PillarJibHelper from '../helper/pillarJibHelper'
function PillarJibInstance({ crane }: { crane: CraneStatus }) {
const position1: [number, number, number] = [5, 1, -4];
const position2: [number, number, number] = [-2, 2, -2];
return (
<>
<PillarJibAnimator crane={crane} />
<PillarJibAnimator
crane={crane}
points={[
new THREE.Vector3(...position1),
new THREE.Vector3(...position2)
]}
/>
<PillarJibHelper crane={crane} />
</>
)
}
export default PillarJibInstance
export default PillarJibInstance;