game-physics
why we do the things we do to calculate collision response between 2d rigid bodies
Hey looking at this page which describes how to calculate collisions between any two polygons, I have a few questions on why the author takes some of the steps he does. He thoroughly shows how to calc[详细]
2023-04-12 18:58 分类:问答Given a polygon and a point in 2D, how can one find the feature (vertex or edge) of the polygon closest to the point?
A naive approach is to find, for each edge in the polygon, the point on that edge closest to the given point, and then take the one that\'s closest. Is there a faster algorithm? My goal is to implemen[详细]
2023-04-10 10:32 分类:问答How to restrict motion to vertical in box2d
I have a box2d body that has a fixture of a ball. It just bounces up and down on top of a rectangular box. Sometimes it will fall off of the box for n开发者_如何学Pythono apparent reason. I there a wa[详细]
2023-04-07 19:23 分类:问答How many pixels is an impulse in box2d
I have a ball that you blow on with air. I want the ball to be blown more if it is close to the blower and blown less if it is farther away from the blower. I am using box2d and I am us开发者_如何学Go[详细]
2023-04-06 20:13 分类:问答moving an object from point to point in a linear path
I\'m trying to move a sprite across the screen in a straight line, towards on the location where\'ve I touched the screen, what i did was upon the update() in each loop , it checks to see if the curre[详细]
2023-04-05 15:37 分类:问答How to make Gears mesh
(I don\'t know a lot of gear type terminology...) I have two gears (Gear A and B) that I\'m trying to get to mesh.[详细]
2023-04-04 17:05 分类:问答Problem with collision detection of a fast moving ball with a racket controlled by mouse
In unity, i have a racket which is supposed to hit a ball, and the racket is controlled directly by the mouse, i.e the bat is being moved by the mouse using mouse axes and the using transform.translat[详细]
2023-04-04 08:06 分类:问答Which OpenGL / 3d Framework is used by Android game's developer? [closed]
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.[详细]
2023-04-04 06:38 分类:问答Mathematical Vectors and Rotations (Topdown java game dev - physics problem)
I\'ve been working on a top down car game for quite a while now, and it seems it always comes back to being able to do one thing properly.In my instance it\'s getting my car physics properly done.[详细]
2023-04-02 08:40 分类:问答How do I make a solid rectangle in Java? [closed]
It's difficult to tell what is being asked here. This ques开发者_StackOverflowtion is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current[详细]
2023-04-02 03:24 分类:问答