Software for simulating physics like collisions, forces, mass, joints, motion etc. Examples of physics engines are PhysX, Havok, Bullet and ODE.
1
vote
1answer
105 views
How should I invoke a physics engine?
I'm new to writing games. I'm planning to write a 2D battle game which may require an physics engine. Suppose I've written one, but how can I combine it with the main routine of my game? Should I ...
6
votes
3answers
591 views
Are collision detection always O(n^2)?
Are physics engine able to decrease that complexity, for example by grouping objects who are near each other and check for collisions inside this group instead of against all objects ? (for example, ...
1
vote
1answer
132 views
animating roulette ball
I'm trying to achieve something like netent's roulette (which is a great product in my opinion). It's going to be implemented in html5.
I wonder which path should I take to have such a great ...
1
vote
1answer
97 views
How to deal with pushing objects out of collision in a physics engine
I'm developing a 3D physics engine (I know, I should use one of the many good existing physics libraries, however my collision detection is optimised for objects with highly ordered highly complex ...
7
votes
1answer
200 views
How do I fix objects “popping” or jittering in physics engine?
I've got a simple physics engine that solves collisions by simply correcting the position of overlapping bodies (just circles for now) directly, as opposed to just changing the velocity or applying an ...
-1
votes
1answer
119 views
Is there any physics engine for XNA? [closed]
I am an XNA game developer. I am now starting to develop physics games on XNA but the problem is that I don't know about any physics engine desinged for XNA. Please if you know about it kindly help ...
2
votes
1answer
189 views
Bullet physics: how to make a soft body “static” (kind of)?
I'm fairly new to Bullet and started using it a week ago. I mainly played with rigid bodies and everything works as expected but now that I also need to add soft bodies into my simulation, things got ...
2
votes
1answer
203 views
Realistic 2D Planetary Physics Engine?
I'm doing a spaceflight simulator in C++ (using Allegro 5), and I realised that I could just use a physics engine instead of writing my own physics.
So that's what I'm doing.
Since this is going to ...
1
vote
2answers
113 views
Moving Sprite With Physics Frame
Normally, a physics frame in pink (see image below) gives the body for detecting hit signal. It usually either falls down or lifts up depending on the gravity orientation. The question is: Is it ...
1
vote
1answer
149 views
Pick and Drop the Ball Testing Without Replicating the Physics Frame
I am making a program that pick, drag, and drop the ball. In real life, once you pick the ball and drop it, whenever the available object is (what you see is what you get) will only be picked and ...
1
vote
2answers
110 views
limiting jump forces to achieve a maximum jump height [duplicate]
A player and the world are modeled using a physics engine. Jumping is modeled by applying a vertical upward force to the player's physics body when the jump button is pressed.
The upward force is ...
12
votes
3answers
688 views
Resolving a collision with forces
In my 2D physics engine, I can detect AABB vs AABB collisions, and resolve them by finding the shortest penetration vector and adding it to the AABB's position.
Doing this "pushes" the first AABB ...
1
vote
0answers
43 views
how to make virtual environment consistent in networked applications?
I have a Virtual Environment(grid of cubes) which has the same state on both users when the application starts.
Both users have haptic devices, whose position is depicted by a small sphere in the ...
0
votes
0answers
133 views
An “AABB Physics Engine” [closed]
I've been working on the physics for my 2D game and for the past two weeks it's been doing my head in. I wanted something a little more complicated than what you see in 2D platformers, but I wanted to ...
2
votes
0answers
149 views
Inverse Dynamics How to
I have some motion capture data (kinect) that records all body joints (32fps) and I want to take particular positions (for example when a person moves both of his hands up in the sky in celebration ...
0
votes
0answers
34 views
ODE Crash when I declare dMass variable [closed]
I have a great problem with Open Dynamic Engine: when I declare dMass variable, my program crash in
geom = dCreateBox(phy->getSpace(), sideLength.x, sideLength.y, sideLength.z);
It too crash if ...
1
vote
0answers
168 views
Friction due to gravity in an impulse based physics engine
In my physics engine, i'm using impulses to solve collisions. I'm basing all calculations on these equations:
impulse = desired_velocity_change * mass
impulse = force * time
friction_force <= ...
1
vote
1answer
137 views
What physics engine support force fields and bodies represented as points?
I need a game engine that supports force fields in 2d or 3d, but suitable for 2d calculations, like bullet.
Each body I want to simulate is represented as a set of points. Each point has positive ...
2
votes
1answer
179 views
RK4 integration and Continuous Collision Detection
I'm using this method to detect collision between two AABBs. The algorithm is simple, fast and works great. It uses the relative velocity between the two objects to calculate TOI. This works fine with ...
1
vote
3answers
602 views
Need Guidance Making HTML5 Canvas Game Engine
So I have some free time this winter break and want to build a simple 2d HTML5 canvas game engine. Mostly a physics engine that will dictate the way objects move and interact(collisions, etc). I made ...
7
votes
1answer
245 views
How do engines avoid “Phase Lock” (multiple objects in same location) in a Physics Engine?
Let me explain Phase Lock first: When two objects of non zero mass occupy the same space but have zero energy (no velocity).
Do they bump forever with zero velocity resolution vectors or do they ...
1
vote
1answer
264 views
How to make a stack stable? Need help for an explicit resting contact scheme (2-dimensional)
Previously, I struggle with the sequential impulse-based method I developed. Thanks to jedediah referring me to this paper, I managed to rebuild the codes and implement the simultaneous impulse based ...
5
votes
4answers
364 views
Sharing data between graphics and physics engine in the game?
I'm writing the game engine that consists of few modules. Two of them are the graphics engine and the physics engine.
I wonder if it's a good solution to share data between them?
Two ways (sharing ...
1
vote
3answers
204 views
What different ways are there to model restitution in a physics engine?
In my physics engine I give a body a value for restitution between 0 and 1. When two bodies collide there seems to be different views on how the restitution of the collision should be calculated. To ...
0
votes
1answer
481 views
How to achieve highly accurate car physics such as Liveforspeed?
Liveforspeed is a racing simulator, there is amazing amount of realistic physics. for example, tires get warm, tire actually deforms when you turn corners. You need to play this game with a mouse at ...
3
votes
3answers
253 views
Semi Fixed-timestep ported to javascript
In Gaffer's "Fix Your Timestep!" article, the author explains how to free your physics' loop from the paint one.
Here is the final code, written in C:
double t = 0.0;
const double dt = 0.01;
double ...
2
votes
2answers
1k views
What's the difference between a Game Engine and a Physics Engine?
What's the difference between a Game Engine and a Physics Engine? How do they work together, and what's the meeting point between them?
1
vote
1answer
174 views
Stopping an object after applying an impulse or force?
I'm having a small issue where after applying an impulse or force it is impossible to actually get an object to stop, i.e. a velocity of zero.
This code is run every 1 / 60 of a second:
void ...
1
vote
1answer
689 views
AndEngine Physics: Shape rotating but not updating physics effects
I was looking at PhysicsExample from AndEngine's Examples. I made the following change that I added a vertical line shape and created a fixture for it. Then I registered a rotation modifier for that ...
3
votes
3answers
226 views
Physics System ignores collision in some rare cases
I've been developing a simple physics engine for my game. since the game physics is very simple I've decided to increase accuracy a little bit. Instead of formal integration methods like fourier or ...
13
votes
4answers
476 views
How should I handle tiny objects in a physics engine?
I am making a 3D physics engine for throwing dice. Up until now a dice has been 1x1x1m and gravity has been 9.82 m/s^2. This of course does not look realistic as the dice will respond to everything in ...
3
votes
3answers
1k views
How can I make my main character move in a parabolic arc when jumping?
I'm entering Android game development, and I already have a computer version of a game I want to publish. The thing is, I want to make this as good as it can be. With that said, I need a physics ...
2
votes
1answer
150 views
Bounding volume hierarchy - linked nodes (linear model)
The scenario A chain of points: (Pi)i=0,N where Pi is linked to its direct neighbours (Pi-1 and Pi+1).
The goal: perform efficient collision detection between any two, non-adjacent links: (PiPi+1) ...
3
votes
1answer
392 views
Design patterns in Game Physics
In the frames of a number crunching compatible programming language (say.. C++), what would be an elegant solution for adding self collision, external collision and integration step (Euler, etc.) ...
1
vote
2answers
422 views
What is a “solver” in a physics engine?
I am self-taught and have successfully coded simple collisions of planes, spheres, rays and up until interactive cloth simulations so I do have some basic sense of which part of the physics goes where ...
0
votes
0answers
129 views
adding contacts in “cyclone”
I am trying to adapt the Cyclone physics engine ( http://procyclone.com/, source code: https://github.com/idmillington/cyclone-physics/) to work with my game, and for my game I think that it would be ...
7
votes
2answers
602 views
Calculation of Inertia Tensors
Bit of a complex and lengthy question that, I'll admit, I don't quite understand very well yet so I will try and explain as best as I can.
Short Version: Is there a general c++/physx formula out ...
3
votes
3answers
355 views
Why does a physics engine produce different results each run through?
There are no random numbers in the engine and everything is calculated the same way. How can it happen differently each time?
This is on my own small physics engine that I made earlier that is ...
7
votes
2answers
851 views
Physics engine that can handle multiple attractors?
I'm putting together a game that will be played mostly with three dimensional gravity.
By that I mean multiple planets/stars/moons behaving realistically, and path plotting and path prediction in the ...
0
votes
1answer
183 views
How to implement physical effect, perspective effect on Android
I'm researching about 2D game for Android to implement an Android Game Project. My project looks nearly like PaperToss. Instance of throwing a page, my game will throw a coin. Suppose that I have a ...
0
votes
2answers
228 views
Game with static scene and bouncing balls. How to?
How to make a game with a static scene and balls that can bounce on it? What is used for this, generally? Physics engines? Even if this is a simplistic example?
1
vote
1answer
155 views
How to pin a body in case of collision in Box2D or Farseer?
I'm trying to get an understanding for the Box2D/Farseer physics engine by implementing a small air hockey simulation.
There, I have the problem that the CPU player attacks the puck, kicks it, but ...
3
votes
1answer
3k views
How do I integrate bullet physics into my game?
I downloaded the release file found here, but I'm just not sure where to start. In my game I have a number of oblongs and a sphere, I want all of these to collide with one another. (They all have ...
1
vote
1answer
396 views
what is the absolute simplest way to add physics to a simple 3D game
This physics does not have to be very complex at all.
There are a number of rectangles and one ball, all of which have the appropriate bounding volumes constrained to them, it would be great if the ...
0
votes
3answers
4k views
2D games on Unity and collision detection performance
I'm developing a 2D game for the iOS platform. I have seen a lot of packages on asset store that makes 2D asset creation for unity easier.
I have narrowed my selection to just 2, 2d toolkit and ex2d. ...
1
vote
2answers
450 views
Entity manager loop opinions
This days I'm refactoring code and one of the things I want to improve is my entity manager code. More precisely, the update funcion where entities are updated. My engine is a 2D tile based engine ...
3
votes
1answer
1k views
Non axis aligned bounding box collision and physics
Exactly how much more expensive, and while we're at it, difficult, is it to have non-axis aligned bounding boxes in your framework?
I realise that it very much depends on what you're trying to do, so ...
0
votes
1answer
4k views
3D open source physics engine suitable for mobile platforms (Android and iOS)
I have made some research and found that bullet, ode, newton and some others are open source physics engines that should be portable enough (but I have never tried to comile/use anyone of them on ...
0
votes
1answer
260 views
physics model simulation
I am building a game for which I want to simulate certain rigid body dynamics.Could someone suggest me some engines which work on Ubuntu.Also as I have dont have much time to implement it,so it would ...
1
vote
0answers
336 views
Joint constraints in PhysX
I'm trying to use PhysX for my physics engine. I'd like to use spherical joints, but I'm having trouble with the constraints. All of the examples that I've found refer to SDK v2.8. I'd like to ...