.
Is anyone using “box2d” or other “physics engines”?
.
I plan to learn “box2d” or other “physics engines”. I am a beginner with no experience and don’t even know how to start. Can someone guide me? I am seeking help
.
For example, I have two ‘moveclip’
How to use the ‘Physics Engine’?
Nape is another popular physics engine. Here’s the manual:
And samples:
How did this go? → Is there a Box2D tutorial available for beginners to learn?
.
I have seen this before,
Is there any way to associate the ‘physics engine’ with my ‘moveclip’?
I don’t know how to start yet?
.
Can someone provide the code?
.
This will help you:
Note how the physics objects contain a reference to the displayObject (can be a MovieClip) using the userData variable. Then as the update function runs, it updates the displayObject by finding it using getUserData();
Okay, okay, thank you very much.
Does everyone prefer to use ‘nape’?
I’ve not used either, as for my purposes, I’ve always just programmed my own physics.
But, if you’re after some metrics:
Box2D
- 102 GitHub
since Jan 18 2012.* - 13 contributors.
- Most recent commit Jan 3 2025.
- Commits last 2 years: 12
- Commits last year: 1
Nape
- 544 GitHub
since Jul 22 2011. - 5 contributors.
- Most recent commit Aug 15 2016.
- Commits last 2 years: 0
- Commits last year: 0
If I was to consider a physics engine with these two options, from a pragmatic perspective, I’d be looking at Box2D first. Primarily because it is more actively maintained, and many folk who maintain it, are here in the OpenFL community.
Just a casual question, because in this post “jostynjala” recommended “nape” to me, “box2d” seems to have been updated more actively
I suspect (and @joshtynjala may correct me if I’ve mishandled this), he was simply putting another popular option on the table for you to consider.
Box2D and Nape are the two main physics engines. There are some others, but they’ve not been updated in many years, so I’m hesitant to mention them.
Okay, I understand. Thank you.
