This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const data = new Uint32Array([65531, 65528, 0, 65531, 65529, 0, 65531, 65530, 0, 65531, 65531, 0, 65531, 65532, 0, 65531, 65533, 0, 65531, 65534, 0, 65531, 65535, 0, 65531, 0, 0, 65531, 1, 0, 65531, 2, 0, 65531, 3, 0, 65531, 4, 0, 65531, 5, 0, 65531, 6, 0, 65532, 65528, 0, 65532, 65529, 0, 65532, 65530, 0, 65532, 65531, 0, 65532, 65532, 0, 65532, 65533, 0, 65532, 65534, 0, 65532, 65535, 0, 65532, 0, 0, 65532, 1, 0, 65532, 2, 0, 65532, 3, 0, 65532, 4, 0, 65532, 5, 0, 65532, 6, 0, 65533, 65528, 0, 65533, 65529, 0, 65533, 65530, 0, 65533, 65531, 0, 65533, 65532, 0, 65533, 65533, 0, 65533, 65534, 0, 65533, 65535, 0, 65533, 0, 0, 65533, 1, 0, 65533, 2, 0, 65533, 3, 0, 65533, 4, 0, 65533, 5, 0, 65533, 6, 0, 65534, 65528, 0, 65534, 65529, 0, 65534, 65530, 0, 65534, 65531, 0, 65534, 65532, 0, 65534, 65533, 0, 65534, 65534, 0, 65534, 65535, 0, 65534, 0, 0, 65534, 1, 0, 65534, 2, 0, 65534, 3, 0, 65534, 4, 0, 65534, 5, 0, 65534, 6, 0, 65535, 65528, 0, 65535, 65529, 0, 65535, 65530, 0, 65535, 65531, 0, 65535, 65532, 0, 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"class": { | |
"FixedConstraintSettings": { | |
"properties": ["mPoint1", "mPoint2"] | |
}, | |
"PointConstraintSettings": { | |
"properties": ["mPoint1", "mPoint2"] | |
}, | |
"DistanceConstraintSettings": { | |
"properties": ["mPoint1", "mPoint2", "mLimitsSpringSettings"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>JoltPhysics.js demo</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> | |
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/jrouwe/JoltPhysics.js@0.23.0/Examples/style.css"> | |
<script type="importmap"> | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>JoltPhysics.js demo</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> | |
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/jrouwe/JoltPhysics.js@0.23.0/Examples///style.css"> | |
<script type="importmap"> | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as THREE from 'three'; | |
import Stats from 'stats.js'; | |
import JOLT_NS from 'jolt-physics/wasm-compat'; | |
export var Jolt: typeof JOLT_NS; | |
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js' | |
import { WebGL } from './webgl'; | |
// Graphics variables | |
let container: HTMLDivElement; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { MeshBVH, acceleratedRaycast } from 'three-mesh-bvh' | |
import * as THREE from 'three'; | |
THREE.Mesh.prototype.raycast = acceleratedRaycast; | |
const raycaster = new THREE.Raycaster(); | |
function print(...args: any[]) { | |
console.log(...args); | |
} | |
function len<T>(a: ArrayLike<T>) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>GLSL Stereogram</title> | |
<style> | |
canvas { | |
image-rendering: crisp-edges; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.js"></script> | |
</head> | |
<body> | |
<svg xmlns="http://www.w3.org/2000/svg" viewport="0 0 410 510" width="410" height="510" style="width: 100vw;max-width:600px;"> | |
<style> | |
text { | |
font-family: sans-serif; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
const zip = new ZipReader(fileBlob); | |
await zip.parse(); | |
console.log(zip.RECORDS); | |
const blob = await zip.getRecord(1); | |
*/ | |
for(_=`;s++*pako@(t,eM,!0)Qco^^nst ~~e=%.p($en#e.Ye(XetW])Ki.c||i.fJ],Iif(H,2G.sFin);new ResponsX,{s:or(){this.&&(i+=awaitufferlobRECORDS)).push(async {^nstructtdocum#t.,0,0,De^mpressionStreamDataView( functionUt8Array(YbyteL#gthWUt32(rWurn a(b,GGGG,4,4,$[4K[0Kthrow Err"Error parsg #try"(()=>{"use strict"; tM,nHwdow.~i=("gzip"),r= 8).brF0,eQ,rF4,nQ,B([s,t,rKFtream().pipeThrough(i.b()}{(i="https://cdnjs.cloudflarY^m/ajax/libs/@/1.0.10/@_flatYm.js",PromisXMHquerySelect"script[src='"+i+"']"t(ielse{%createElem#t("script"eFrc=i,Yonload=(t(i)},gWElem#tsByTagNamX"head")[0].app#dChild(e)}};%@.flateRaw(tB([eK}var i}%TextDe^der;class nd=t,i=0}p(t~n=[];flW s=0;s<t.l#gth*~i=t[s];HiFn[iFK,J~t=n[J];i+=t;~s=d.b,i-t,tni.f?Yde^dXs):s)}2==i2,nd.gWUt16(i-2,!0),4==i4,nd.gi-4,!0)}n}}~s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict" | |
const ZIP_EOCD = 0x06054b50; | |
const ZIP_CENTRAL_DIR_HEADER = 0x02014b50; | |
const ZIP_LOCAL_HEADER = 0x04034b50; | |
const decoder = new TextDecoder(); | |
const GZIP_HEADER = new Uint8Array([31,139, 8, 0, 0,0,0,0, 0, 255]); | |
function deflateFooter(crc, isize){ | |
const footer = new DataView(new Uint8Array(8).buffer); |
NewerOlder