Skip to content

Commit

Permalink
target esnext
Browse files Browse the repository at this point in the history
  • Loading branch information
nknapp committed Sep 20, 2024
0 parents commit 1d750b4
Show file tree
Hide file tree
Showing 10 changed files with 1,123 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Deploy

on:
push:
branches:
- main

jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3

- name: Install dependencies
run: npm ci

- name: Build project
run: npm run build

- name: Upload production-ready build files
uses: actions/upload-artifact@v3
with:
name: production-files
path: ./dist

deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'

steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: production-files
path: ./dist

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/node_modules/
dist
.idea
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

# Rapier Three Trimesh Bug Example

When experimenting with three.js and rapier3d, I noticed this problem.

When two objects are both using a "trimesh" collider, they sometimes get stuck, even though the friction set to a low value.
This does not happen with "convexhull colliders"

# The example



```js

```
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<head>
<script src="src/index.ts" type="module"></script>
<style>
html, body, canvas {
padding: 0;
margin: 0;
width: 100%;
height: 100%
}
</style>
</head>
<body>
</body>
Loading

0 comments on commit 1d750b4

Please sign in to comment.