Latest Box2D Activity
Playground: https://plnkr.co/edit/BGNYcIJRiJXpd9N4?preview
GitHub: https://github.com/8Observer8/how-to-set-up-box2dwasm-with-importmap-rollup-js
glMatrix is just a bonus:
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewpor…
I added debug drawing of the circle collider using the Melon.js game engine and Box2D-WASM.
Live demo: https://8observer8.github.io/webgl10-js/debug-drawer-box2dwasm-melonjs-js/
GitHub repository: https://https://github.com/8Observer8/debug-drawer-box2dwasm-melonjs-js
Playgrounds/Sandboxes:
- Replit: h…
its_artem said:
Actually, I tried disabling the b2Bodies and setting their locations to the positions they would have fallen to, and they're still jittering.
Well, figuring out it's not because of physics is progress.
Just stating the obvious, but now you need to figure out what's the difference betwe…
Never used box2d, but as nobody else seems to have time, let's try.
I copy/pasted the code above and reformatted it to something readable. Compiling it fails with:
$ g++ something.cpp
something.cpp: In function ‘void AddBox(b2World&, int, int)’:
something.cpp:132:20: error: invalid conversion fro…
AntonioR said:
@SuperVGA Thanks. If you look at the textures you will actually find Abuse checkpoint texture there, but I did not implement checkpoints, because I did not finish the level. Back in 2012 I made a different Quake 2D game and everybody was also comparing it to Abuse, but I have not play…
My example shows how to use Ammo.js with TypeScript in Debug and Release modes: hello-planckjs-webgl10-ts
You should install these modules globally:
- npm i typescript -g
- npm i browserify -g
- npm i uglify-js -g
Install all packages from `package.json` using the command: `npm i`
Comment/Uncomment Debug/Relea…
5 hours ago, Dirk Gregorius said:Box2D does not use incremental manifolds, but builds full manifolds each frame. The contact and friction impulses are matched between frames using contact IDs.
Erin has given a bunch of talks over the year which cover certain aspects of …
I think this is not correct if you mean general triangle meshes. Both SAT and GJK only work for collision/distance between *convex* polyhedra. Also, you use SAT for nearly all boolean overlap tests I am aware of. At least in a specialized form. It is the basic idea for these kind of tests. For di…
And yes, the first approach is a simplified version of the second approach. It is missing key features needed to avoid jittering and to let shapes stack nicely in piles.
I agree, this is actually what I'm doing. I was previous passing down the position and rotation of the parent object, and moving the sub-objects around to suit the new position.
Having a proper transformation matrix makes this really easy now as I simply pass a reference to the parent transf…
On 4/19/2018 at 10:50 PM, swiftcoder said:I do not.
Ok, that makes it even easier, since you know by the key press which way they are flipping.
At the most basic, you just need to count how many times the bike passes 180 degrees rotation (assuming that 0º is up…
This week was full work on the AI, which was lacking a bit, to say the least. It is a simple state machine that changes based on the distance to the character (far? jump, close? punch/kick) and its own physical state (falling? stucked? idling? close to edge?).
Eventually I managed to make se…
I've been using my own internal physics so far for my jungle game, but had been meaning to try out Box2D as I had heard good things. Whether to use third party middleware for physics comes down to a few pros and cons for me:
Middleware- Mostly written already
- Tested
- …
This post game is about death, love and drugs.
Download - https://gamejolt.com/games/Dead_Dream/259419
Refining the tutorial was probably one of the hardest part of the "later development". Everything was in place, but how to teach the player how to play the game was still a struggle.
The first time somebody tried my game, he was 15 minutes on level 1 and he couldnt even solved it. So this wa…
Lately I've been working on updating the hud. The game is quite colorful (once you press play) so I thought adding a cardboard only hud to make the distinction.
Use to look like this:
Now it looks like this:
Top left is supposed to be the briefing about the current level. Wor…
Pretty nice game. Very relaxing.
Original Post: Limitless Curiosity
Out of various phases of the physics engine. Constraint Resolution was the hardest for me to understand personally. I need to read a lot of different papers and articles to fully understand how constraint resolution works. So I decided to write this article t…
In the last post, I explained how to solve the box2d issue about cloning a world. It's pretty simple, fairly fast and reliable in its results.
I didn't use it. Why? Because there are some cases (like my game) that it doesn't w…
So, in the previous post I said the main problem about duplicating a box2d world. The worlds differ.
Why would you want to duplicate a box2d world?There are several reasons:
19 hours ago, IADaveMark said:Not necessarily a direct answer, but certainly worth your while.
https://www.gdcvault.com/play/1018262/The-Next-Vector-Improvements-in
http://www.gameaipro.com/GameAIPro/GameAIPro_Chapter23_Crowd_Pathfinding_and_Steering_Using_Flow…
Very nice! Looks like it has everything! Can you create isometric games with this engine or just platform games?
Greetings everyone!
I finally managed to put together complete system that will be used as a backbone of my new game. The game itself is supposed to be a mix of Kerbal Space Program and Space Engineers in 2d, maybe with some added influences from other games. I'll get back to this later, whe…
Now speaking according to my personal experience with farsear for xna (which is based on box2d)
If I'm not mistaken you can override the collision event of the enemy. Just make sure you return false and it'll be like the collision never…