Skip to content

Commit

Permalink
add TODO and NOTE
Browse files Browse the repository at this point in the history
  • Loading branch information
golemax committed Jan 15, 2024
1 parent bfde626 commit 8abb66a
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 3 deletions.
18 changes: 18 additions & 0 deletions NOTE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Collisions
## Collision detections
> Collisions are calculate only when a part is in movement.
### Pre-detection
For collisions, every individual object contain hitBox (and multiple hitbox for big object like walls, So they can be divided by rooms)
For detect potential collisions, we use Box/Box collisions (inspired by [Rectangle/Rectangle](http://www.jeffreythompson.org/collision-detection/rect-rect.php))

### Final collisions detections
When Two hitbox are collided, we calculate true collisions with Model/Model collisions (inspired by [Polygone/Polygone](http://www.jeffreythompson.org/collision-detection/poly-poly.php))

## Bounce
If a collision was detected, move is canceled and new position target are calculated from the movement of two model.

### Vertex direction calculate
We calculate the angle and the force of collision with the move vector of the vertex and calcul the angle with le différence beetween the face collided's normal and vertex vector <br>
Bounce of surface can be calculate from angle and surface material's bounce value.<br>
[calcul of force write here later]
27 changes: 27 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
- Menu
- Menu > Play Warning
- Menu > Credits
- Menu > Settings
- Settings > Player Rotation Sensibility (not for VR)
- Settings > Player Move Sensibility (with a maximum)
- Menu > Github Link
- Gameplay > Tasks
- Gameplay > Doors
- Gameplay > Vents
- Gameplay > Sabotages
- Gameplay > Endurance
- Gameplay > Collisions
- Expression Engine > Detector
- Expression Engine > Animations
- Expression Engine > Animations Transitions
- Online
- Online > Websocket Protocol
- Online > Public Server
- Online > Self Hosted Server
- Online > API
- Map > Clean "Skeld" Map
- Map > Set Lights
- Map > Set HitBox (ref to [Collisions](NOTE.md#collisions))
- Gameplay > Support Full-Body Tracking
- Gameplay > Support Eye Tracking
- Gameplay > Support Immersive Collisions
6 changes: 3 additions & 3 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ renderer.setSize(window.innerWidth, window.innerHeight);
document.body.appendChild(renderer.domElement);
scene.background = new Three.Color(0x000000);

camera.position.y = 0.1
camera.position.y = 0.1;

let userNum = 0
let angle = userNum/12 * Math.PI;
let userNum = 0;
let angle = userNum/12 * Math.PI * 2;
const distance = 0.3;
camera.position.x = Math.sin(angle) * distance;
camera.position.z = Math.cos(angle) * distance;
Expand Down

0 comments on commit 8abb66a

Please sign in to comment.