Search found 12 matches

by Jonno2343
Tue Feb 08, 2011 1:26 pm
Forum: Questions and Help
Topic: Keeping two Entities at the same position.
Replies: 22
Views: 15035

Re: Keeping two Entities at the same position.

Thanks for that. I can't believe I was being so dense and just expecting the limit to withstand the motor if the angle was set to a high number. I've now made the angle stay within the constraints as well and all seems good. I've increased the mass a bit but by decreasing the motor spring stiffness ...
by Jonno2343
Mon Feb 07, 2011 9:11 pm
Forum: Questions and Help
Topic: Keeping two Entities at the same position.
Replies: 22
Views: 15035

Re: Keeping two Entities at the same position.

Hi Thanks for the offer to help. I've posted the code bellow but in this latest version I've tried using the limits and motor from the RevoluteJoint itself, the old way is commented out. public Finger(Entity palm, float width, float depth, float bottomHeight, float topHeight, float xOffset) { Palm =...
by Jonno2343
Mon Feb 07, 2011 7:38 pm
Forum: Questions and Help
Topic: Keeping two Entities at the same position.
Replies: 22
Views: 15035

Re: Keeping two Entities at the same position.

Hey again, I've implement the fingers using two box entities with RevoluteJoints connect the bottom part of the finger to the palm of the hand and the top part of the finger to the bottom part of the finger. I've also added RevoluteLimits limiting the angles between 0 and 135 degree. Then to control...
by Jonno2343
Fri Feb 04, 2011 9:15 pm
Forum: Questions and Help
Topic: Keeping two Entities at the same position.
Replies: 22
Views: 15035

Re: Keeping two Entities at the same position.

Ah, lol, nevermind that post. I changed the collision margin to 0.001f and now it goes smaller.
Will just need to watch it for problems later on.
by Jonno2343
Fri Feb 04, 2011 9:13 pm
Forum: Questions and Help
Topic: Keeping two Entities at the same position.
Replies: 22
Views: 15035

Re: Keeping two Entities at the same position.

I've decided to first get the hands working on their own before adding the arms. Rather keep it simple and finish it and then add it on later then get stuck on this and not move forward. I definitely want to try this later on and so thanks for the help regarding it. I had another question regarding ...
by Jonno2343
Thu Feb 03, 2011 2:28 pm
Forum: Questions and Help
Topic: Keeping two Entities at the same position.
Replies: 22
Views: 15035

Re: Keeping two Entities at the same position.

I tried implementing SingleEntity motors to get the pieces all lined up but I'm having a few problems, some of which you said I'd have. The one issue is that if the hand is told to be at a position further away than the lenght of the hand, the entities stretch out and wriggle around. Is there anyway...
by Jonno2343
Tue Feb 01, 2011 7:44 am
Forum: Questions and Help
Topic: Keeping two Entities at the same position.
Replies: 22
Views: 15035

Re: Keeping two Entities at the same position.

Would I remove the joints between the Body and the upper arms then? Or does the Single Entity motor disregard those constraints? I would still like the joints to work so that the arm moves in a natural way. If you don't want the capsule to be affected by constraint forces from the arms, then any ph...
by Jonno2343
Mon Jan 31, 2011 9:53 pm
Forum: Questions and Help
Topic: Keeping two Entities at the same position.
Replies: 22
Views: 15035

Re: Keeping two Entities at the same position.

Thanks for the quick response! Yeah, making the body kinematic would cause big problems especially with the collision between body and the Triangle Mesh building. The camera's position is linked to the Person's body capsule so the position will tie in with the physics entity, it's only the rotation ...
by Jonno2343
Mon Jan 31, 2011 6:25 pm
Forum: Questions and Help
Topic: Keeping two Entities at the same position.
Replies: 22
Views: 15035

Re: Keeping two Entities at the same position.

Ok, I've decide to leave out the Torso and just attach the Arms to the Person's capsule body. My camera's direction is controlled by the HMD rotation sensor which reads Yaw, Pitch and Roll and so I Create the camera's lookat using those parameters as the direction. Once that is done I use a EntityRo...
by Jonno2343
Fri Jan 28, 2011 8:22 pm
Forum: Questions and Help
Topic: Keeping two Entities at the same position.
Replies: 22
Views: 15035

Re: Keeping two Entities at the same position.

If the body using an EntityMover targets the current frame's position, it will indeed be a frame behind. The 'fix' is to make all expectations consistent. Right now, the camera expects the visible ragdoll body to be in the right position relative to the camera. If this were the sole goal, you could...
by Jonno2343
Fri Jan 28, 2011 7:38 pm
Forum: Questions and Help
Topic: Keeping two Entities at the same position.
Replies: 22
Views: 15035

Re: Keeping two Entities at the same position.

Hi Norbo, Thanks very much for that info, it was most useful. I've now implemented the EntityMover and Rotator and the ragdoll stays together (now flailing arms) but the entire ragdoll is now, what seems to be, one step behind. What I think is happening is, during the update I tell the MoveEntity to...
by Jonno2343
Fri Jan 28, 2011 12:42 pm
Forum: Questions and Help
Topic: Keeping two Entities at the same position.
Replies: 22
Views: 15035

Keeping two Entities at the same position.

Hi there First of all, great work on the Physics engine, it is very easy to use and works fantastically. I am developing a Virtual Reality program which uses a Head Mounted Display, Data Gloves and some 3D location / rotation trackers. The orientation of the HMD affects the camera and then I'm wanti...