AndEngine; Box2D - high speed body overlapping, prismatic joints



Category : Game Development
I'm trying to make good suspension for my car game, but I'm getting nervous of some problems with it.At the beginning, I've tried to make it out of one prismatic joint/revolute joint per one wheel only, but surprisingly prismatic joint that should only move in Y asix moves also in X axis, if car travels very fast, or even on low speeds if there's setContinuousPhysics = true. This causes wheels to "shift back", moving them away from axle.Now I've tried to add some bodies that will keep it in

View Replies

Related to : AndEngine; Box2D - high speed body overlapping, prismatic joints


Reflecting a body with same speed in Box2d after collision AndEngine
Category : Programming Languages

Is there any way to reflect a physics body in Box2d in AndEngine with the same speed after collision.
Suppose if a ball hits the wall with speed X and reflects, then the speed after reflecting must be X again. Is that possible? If so please tell me how can I do this.


View Replies


create box2d andengine box2d body without sprite
Category : Programming Languages

hey I have created my body using following code: (please read full description)


Body polyBody;
final BodyDef mBodyDef = new BodyDef();
mBodyDef.type = BodyDef.BodyType.DynamicBody;
mBodyDef.position.x = 20;
mBodyDef.position.y = 5;
p

View Replies


Box2d body movement in Andengine
Category : Programming Languages

I made a race game.there are car.it is moving by onAnalogScreenContol button.And it's moving perfect what i set velocity to its body.But when i add 50 walls which are Shape of rectangle and body,the car moving very very fast.How can I solve this problem?


View Replies


How to drag body using AndEngine Box2D extension
Category : Programming Languages

Using AndEngine Physics Box2D i am trying to drag a body from side to side on the x axis.


This is what i have so far which isnt working correctly, the body moves up on the y axis and it doesnt follow the pointer(finger)


int P2M = 32;
final Vector2 v2 = Vector2Pool

View Replies


Making body(box2d) a spite(andengine) in android
Category : Android

I can't make body(box2d) a spite(andengine) and at the same time i wanna apply MoveModifier to sprite which is body.if i can make just body,it works namely the srites can collide.if i can apply just MoveModifier to sprites,the sprites can move where i want.but i wanna make body(they can collide)


View Replies


Making body of Animated Sprite in Andengine Box2d
Category : Programming Languages

My problem is How can I use Animated sprite in Box2d as each frame of the Animated sprite has different texture and all the frames are packed in one Sheet / one Atlas.. And I have created multiple sets of Vertices with Vertex helper , each Set belongs to every one frame of that Animated Sprite bu


View Replies


How do I create a strong rope with a modified distance/prismatic joint in box2d 2.1a?
Category : Programming Languages

I already have a working rope animation using rectangular bodies with revolute joints between. The problem with this simulation in box2d is that if I connect anything fairly dense at the end of the rope, all the chains start drifting apart.


I've read on several forums (mainly http://


View Replies


box2d: positioning of an box2d body with a specific angle without using setTransform()?
Category : Programming Languages

I am using box2d which is included in the libgdx api (java)


I am using a rectangular box2d body as a sensor for detecting swordslash-collisions (using the body as an sensor) in 4 directions
(slashing 90° up, down, left, right).
so for slashing in the up-direction i create b


View Replies


AndEngine with Box2D Extension
Category : Programming Languages

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: https://github.com/RealMayo/AndEnginePhysicsBox


View Replies


Box2D kick start AndEngine?
Category : Programming Languages

I have developed simple 2D games with AndEngine but now I want to make games using Physics Engine. I am using AndEngine as game development engine but there is no tutorials available. I am stuck in tons of information. I have read Box2d manual on their site.


If you know please share t


View Replies


2012 / 2017 Copyrights BigHow , All Rights Reserved .