UNPKG

lingo3d

Version:

Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor

10 lines 423 B
import createInternalSystem from "./utils/createInternalSystem"; export const gyrateInertiaSystem = createInternalSystem("gyrateInertiaSystem", { data: {}, update: (self, data) => { data.factor *= 0.95; self.gyrate(data.movementX * data.factor, data.movementY * data.factor); data.factor <= 0.001 && gyrateInertiaSystem.delete(self); } }); //# sourceMappingURL=gyrateInertiaSystem.js.map