Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 229

Relating to the motion of objects through space and time. Including concepts such as acceleration (thrust and gravity), mass, collision response, friction and more.

3 votes

Implementing a wrapping wire (like the Worms Ninja Rope) in a 2D physics engine

Check out how the ninja rope in Gusanos was implemented: The rope acts like a particle until it attaches to something. Once attached, the rope just applies a force onto the worm. Attaching to dynami …
Leftium's user avatar
  • 4,423
8 votes

How can I factor momentum into my space sim?

Instead of manipulating the velocity directly, add another variable: acceleration, that gradually, smoothly alters the velocity: From classical physics (Newton's laws of motion): a = F/m // a Force …
Leftium's user avatar
  • 4,423
1 vote

Determine the bullet / particle reflection off of a circle in node js using SAT lib functions

Source: Mathematics and Physics for Programmers, p. 200-201 Finally, I have implemented the above algorithm using SAT vector functions, as requested. …
Leftium's user avatar
  • 4,423
0 votes

Sphere to plane collision never rearching resting contact

Stop applying (the gravity) force after reaching RESTING_CONTACT. My guess is your sphere is reaching resting contact, but gravity (or other forces) causes it to continue moving as soon as the next u …
Leftium's user avatar
  • 4,423
15 votes
Accepted

Resolving a collision with forces

First, I recommend using a free, open-source physics library like Box2D and just focusing on the aspects of your game that make it unique! … This is a good reason to keep your physics time steps as small as possible and handle collisions before any penetrations occur. …
Leftium's user avatar
  • 4,423
2 votes

Resolving a collision with forces

In the real world, there is no force that "pushes" one body outside of another body because objects don't ever penetrate each other. The closest thing is the normal force: created at the moment of c …
Leftium's user avatar
  • 4,423
9 votes
Accepted

2D Platformer AABB collision problems

to reproduce the "jumping" bug in the XNA demo by changing this line: for (int y = topTile; y <= bottomTile; ++y) to this: for (int y = bottomTile; y >= topTile; --y) (I also tweaked some of the physics-related …
Leftium's user avatar
  • 4,423
1 vote

Rotating sprite around another sprite

The sprite affects the visual appearance while the body affects the physics behavior. … Keep using pivot and anchor to visually show the cue rotating/moving, but don't add a physics body to this sprite. …
Leftium's user avatar
  • 4,423