MCPcopy
hub / github.com/pmndrs/react-three-fiber / Apple

Function Apple

example/src/demos/ViewTracking.tsx:64–68  ·  view source on GitHub ↗
(props: ThreeElements['group'])

Source from the content-addressed store, hash-verified

62}
63
64function Apple(props: ThreeElements['group']) {
65 const { scene } = useGLTF('/apple.gltf')
66 useFrame((state, delta) => (scene.rotation.x = scene.rotation.y += delta))
67 return <primitive object={scene} {...props} />
68}
69
70const isOrthographicCamera = (def: THREE.Camera): def is THREE.OrthographicCamera =>
71 def && (def as THREE.OrthographicCamera).isOrthographicCamera

Callers

nothing calls this directly

Calls 1

useFrameFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…