Questions tagged [physics-engine]

A physics engine is computer software that provides an approximate simulation of certain physical systems, such as rigid body dynamics (including collision detection), soft body dynamics, and fluid dynamics, of use in the domains of computer graphics, video games and film.

A physics engine is computer software that provides an approximate simulation of certain physical systems, such as rigid body dynamics (including collision detection), soft body dynamics, and fluid dynamics, of use in the domains of computer graphics, video games and film. It is the Physics engine that creates realistic effect of something physical interacting with the environment in video games and simulations, from collision of a car in a wall to football kicked by the player and bouncing off the ground.

365 questions
0
votes
2 answers

C++ Sprite class with Vector Object as Member

Ok, I'm having this problem with my Sprite class. Basically the sprite class should have a object of class Vector as its member with Vector being a class with both angle and speed. The Vector class has a Vector(double,double) constructor so the…
0
votes
0 answers

Ball Randomly Slowing Down

Currently, I have a program that has a ball, bouncing back and forth. In order to find out how fast it's bouncing, I made this: b2Vec2 velocity = blueCircleBody->GetLinearVelocity(); float constantSpeed = velocity.Length(); NSLog(@"%.f",…
Wei Pan
  • 57
  • 7
0
votes
1 answer

AndEngine with Box2D Extension

I am newbie to AndEngine. I have done some research and found two extensions for Box2D. One is developed by Nicholas Gramlich itself: https://github.com/nicolasgramlich/AndEnginePhysicsBox2DExtension and the other one is developed by Real Mayo:…
0
votes
1 answer

Physics-based Walking (from A New Zero)

I saw this video and I was amazed, and naturally, I want to try to do it myself. http://www.youtube.com/watch?v=P_DeZUg9HiY Does anyone have any idea how he made the character walk? Look at the video at 1:15. What kind of Bullet physics constraints…
winduptoy
  • 5,054
  • 9
  • 44
  • 66
0
votes
1 answer

Physics Flex library for Mobile Programming

I'm looking for a physics library that is compatible with Flex 4. Any recommendations? Will any physics library be compatible with iPhone and Android ?
Majid Laissi
  • 17,370
  • 17
  • 62
  • 99
0
votes
1 answer

Having problems understanding body positioning in Box2d. Any pointers on how things work?

I'm struggling to learn and understand box2d. Here is my problem: I'm trying to make a simple car, the car body looks like this for now: Now I'm trying to add a wheel, I create the wheel body and I assume I'll link the wheel to the car body using a…
Horatiu Paraschiv
  • 1,630
  • 2
  • 15
  • 37
0
votes
1 answer

can't add an object to NSMutableArray

Good day ! I use physics engine "chipmunk". Try to create dynamic object by clicking. AddBalls() creates desired body and shape. By clicking it have to generate a new object and put it in array. -(void)AddBalls: (UIImageView *)image; { cpBody…
0
votes
1 answer

Move a sprite to touched point increasing velocity the longer the touch

How do I move a sprite to touched point on the x axis increasing velocity.x. The longer the touch the higher velocity goes, then when it comes into a certain range of the touch point or the user releases their finger, slow it down again? I have a…
dev6546
  • 1,372
  • 6
  • 20
  • 39
0
votes
1 answer

Cocos2d Chipmunk gravity and collision detection

I have a simple animation in Cocos2d Chipmunk with the tasks: One round shaped sprite situated in the center of the screen, rigid body type. Center of gravity needs to be located in center of this sprite. From different sides of screen…
Alex
  • 1,599
  • 3
  • 19
  • 36
0
votes
1 answer

Is there a way to find all of the separate forces (as b2Vec2's) acting on a body at a given time?

I'm new to Box2D, (and actionscript in general) and I'm making a sort of a teaching tool for physics students. I'm trying to be able to display the forces (as vectors) acting at a body at a given moment in time. Is there a method of finding the…
atlalok
  • 11
  • 1
0
votes
1 answer

How do I resize a b2CircleShape on cocos2d iPhone with Box2D

I have a 2D physics sandbox with a bunch of circles which resize on contact (the bigger one gets bigger, the smaller one gets smaller). I can resize the sprite fine, and I understand that you can't scale a B2Body - you need to destroy it and…
glenstorey
  • 4,914
  • 5
  • 37
  • 70
-1
votes
1 answer

Absorbing impact force during collision in a Car racing game

I am making a racing game and I want to impact between the wall and the car to be absorbed to the level where the car travelling at high-speed cant be thrown away in the other direction due to the large force... The video below shows how the car is…
-1
votes
1 answer

Firing particles from a player at a constant speed with cos() and sin() in python pygame

In python pygame I'm trying to make my player shoot a particle in the direction of the mouse, starting at the players centre class Particle: def __init__(self, ..., dx, dy, x, y): self.dx = dx self.dy = dy self.x = x …
k-shar
  • 35
  • 6
-1
votes
1 answer

Clarifying the use of Update() and FixedUpdate()? Unity2D

So I understand that FixedUpdate should be used for physics operations and such but I am having trouble understanding what counts as physics. So for example, I move my character by looking at what keys are pressed then I apply a force. Currently I…
-1
votes
1 answer

Gravity issue using Farseer Physics

Having an issue with farseer physics im pretty sure the issue is just with this line of code because of the y value. So when i try to move my character when falling he moves left and right normally but his fall slows. body.LinearVelocity = new…
KGSB
  • 37
  • 7
1 2 3
24
25