MCPcopy Create free account
hub / github.com/TheOrcDev/github-creature / constructor

Method constructor

components/liquid-ether.tsx:907–922  ·  view source on GitHub ↗
(options?: Partial<SimOptions>)

Source from the content-addressed store, hash-verified

905 poisson!: Poisson;
906 pressure!: Pressure;
907 constructor(options?: Partial<SimOptions>) {
908 this.options = {
909 iterations_poisson: 32,
910 iterations_viscous: 32,
911 mouse_force: 20,
912 resolution: 0.5,
913 cursor_size: 100,
914 viscous: 30,
915 isBounce: false,
916 dt: 0.014,
917 isViscous: false,
918 BFECC: true,
919 ...options,
920 };
921 this.init();
922 }
923 init() {
924 this.calcSize();
925 this.createAllFBO();

Callers

nothing calls this directly

Calls 1

initMethod · 0.95

Tested by

no test coverage detected