Log In  
Follow
bctr
[ :: Read More :: ]

PIco3e is a 3D collision engine written in PICO-8! As far with the alpha release, what it does is...

This was the alpha version, in wireframe. It does work with arbitrary rotated bodies and solve the forces correctly. It took me about 3 weeks of learning & coding, and below is the demo cart I've been using it for proof of work.

Implemented features from reference project qu3e:

  • 3D Oriented Bounding Box (OBB) collision detection and resolution
  • Discrete collision detection
  • Collision test via the Separating Axis Theorem
  • Collision manifold generation via face-to-face method and the sutherland clipping

Token usage: 2873 (with current scene). Thus space is sufficient for some game logic. Unfortunately cpu usage is a bit high, with collision between each 2 bodies takes 5% cpu in 30 fps and doubled in 60 fps. Therefore it's assumed optimal number of bodies is <= 4.

v1.0.0 Known issues:

  1. edge to face collision's force center is biased
  2. body doesn't rotate if supporting force is aligned to mass center
  3. cannot handle multiple body collisions / compound forces

And especially thanks so much to @freds72 without his help I couldn't make this happen.


Aug 13th, 2019. Update with a playable scene and fixed the edge to face collision bug.

Press Z to take a screenshot when the same color faces are aligned to camera.

Cart #hayonuzoyu-2 | 2019-09-05 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
9

P#66779 2019-08-19 13:41 ( Edited 2019-10-30 10:18)

[ :: Read More :: ]

Hi! Folks. Here's my submission for 7DRL 2019.

It's a turn-based survival game, in which you play as a mountaineer trying to reach 7000m with limited supply. For now we basically have only one type of room.

Cart #alpine7000-2 | 2019-03-11 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

P#62743 2019-03-11 09:12 ( Edited 2019-03-11 11:34)

[ :: Read More :: ]

Modified previous work to add a centroid bar to spiral galaxies.
https://en.wikipedia.org/wiki/Barred_spiral_galaxy

Press: "x" to regenerate.

Cart #galaxy_generator-3 | 2019-02-02 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

P#61460 2019-02-02 10:55 ( Edited 2019-02-02 11:15)

[ :: Read More :: ]

Cart #moon_rises-1 | 2019-02-02 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

Originally from Tobiasvl's tweetcart: https://twitter.com/Spug/status/1090559155436511232

(Sorry I didn't include the link before.)

P#61398 2019-01-31 18:02 ( Edited 2019-02-02 11:19)

[ :: Read More :: ]

Taken from a discord's discussion, algorithm provided by @ skaarjslayer: http://itinerantgames.tumblr.com/post/78592276402/a-2d-procedural-galaxy-with-c

And also reference to: https://en.wikipedia.org/wiki/Archimedean_spiral

Cart #gotunozosi-0 | 2019-01-30 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

P#61357 2019-01-30 15:41 ( Edited 2019-02-01 08:35)

Follow Lexaloffle:          
Generated 2024-03-28 14:10:01 | 0.078s | Q:26