UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

14 lines (9 loc) 396 B
import { BufferGeometry, Float32BufferAttribute } from "three"; /** * Special geometry for transform helper. If scaled with position vector it spans from [0,0,0] to position */ export function TranslateHelperGeometry() { const geometry = new BufferGeometry(); geometry.setAttribute('position', new Float32BufferAttribute([0, 0, 0, 1, 1, 1], 3)); return geometry; }