Rigid body physics simulation math issue

  • Thread starter NotASmurf
  • Start date
  • #1
150
2
Hey all, I'm making a physics simulation for training an algorithm of mine, I'm running into issues on the rigid body physics simulation. Let's say I have a leg composed of a calf and a thigh. gravity will be acting on both, and the calf is attached to the thigh, Any suggestions on how I would go about calculating the new thigh and calf positions and rotations? Any help appreciated.

leg.png
 

Answers and Replies

  • #2
13,280
7,190
I think you need a connecting point like a joint so that as you rotate the thigh rectangle the joint rotates and/or changes position and then you use the joint's new position to calculate the position of the calf object.

So in your fig 1 diagram you need a red dot between to the two rectangles to represent the pivot point of the joint and you need a corresponding red dot in the fig 2 diagram.
 
  • #3
150
2
they are connected, i just did not draw it in, sorry.
 

Related Threads on Rigid body physics simulation math issue

  • Last Post
Replies
3
Views
2K
  • Last Post
Replies
3
Views
7K
  • Last Post
Replies
7
Views
2K
  • Last Post
Replies
8
Views
2K
  • Last Post
Replies
12
Views
1K
  • Last Post
Replies
1
Views
9K
  • Last Post
Replies
3
Views
2K
Replies
3
Views
2K
Replies
5
Views
1K
Replies
1
Views
5K
Top