pillar jib animator added
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user