Questions tagged [box2d-joints]
10 questions
5
votes
1 answer
Box2D Hierarchical Connection Between Bodies
I have a arbitrarily deep tree structure of bodies in box2d. When a parent body collides with anything, it should move its children along. On the other hand, if the child is moved due to a collision, the parent should not be touched. One body can be…

anlumo
- 143
- 2
- 7
3
votes
0 answers
Box2D WeldJoint not working correctly
In front of my question, my english is very adventurous...
In my libgdx application, I have implemented Box2D. So I created a World and add them 2 Bodys. The first Body is a PolygonShape set as box which is static and rotate in the middle of my…

Fabian König
- 323
- 2
- 4
- 10
2
votes
1 answer
Getting dampingRatio to work with Box2D and DistanceJoint
I have tried unsuccessfully on several projects to get a distance joint to stop swinging forever in Box2D for JavaScript. No matter what values I set for the density of the bodies and the dampingRatio and frequencyHz of the distant joint definition…

Dan Zen
- 480
- 3
- 10
1
vote
0 answers
How to make moving Kinematic platform with Box2d / LibGdx
I am currently working on a project and im trying to implement a moving platform that goes up and down continuously from A to B. I've tried some stuff and i can't get it to move. It appears as a box on the screen but it is static. This is my current…

el Kusn
- 77
- 5
1
vote
0 answers
Revolute joint with box2d web, wheel not turning around own axis
I am trying to use revolute joints in node.js server, but my wheel is not turining around its own axis but around body.
Here is my code:
var joint_def = new b2RevoluteJointDef();
joint_def.Initialize(this.body , wheel,…

peterSweter
- 633
- 6
- 23
1
vote
1 answer
Box2D: how do I make one body passively attached to another?
I'm trying to use joints in Box2D to have one body passively attached to another. For example:
[B][A]
Goal: When A attaches to B, B is always to the left of A. Other bodies should still collide with both B and A but I don't want B to have any…

C. Olimar
- 311
- 1
- 3
- 8
1
vote
1 answer
Java Libgdx - Box2d setTransform multiple bodies with joints
I have a group of body, attached with some joints (wheel-joint, prismatic-joint, revolute-joint)
I'm trying to move that group of body to a position with the method setTransform
I decided to move only one body to the position, and others bodies…

LeSam
- 1,235
- 4
- 18
- 38
0
votes
1 answer
What is soft constraint in box2d?
I am creating a mouse joint and I bump across this term, what it actually means.
documentation for mouse joint:-"A mouse joint is used to make a point on a body track a specified world point. This a soft constraint with a maximum force.
* This…

shubham
- 49
- 7
0
votes
1 answer
Move a body emulating the movement of my finger on the screen at a constant speed
I need help with the following problem since I have invested many days without arriving at an acceptable solution.
I'm doing an Android game (using libgdx) where the main character (named Hero) is seen from above (top-down view game) and walks on a…

Alvaro
- 25
- 1
- 8
-1
votes
1 answer
Trying to generate sword swinging attack using Box2D in Citrus Engine
I've been banging my head up against a wall for the past couple of days trying to figure out how to properly extend CitrusEngine's Box2DPhysicsObjects to generate my custom objects. My goal is to generate this behavior:
example of desired…

Patrick Michaelsen
- 13
- 3