Default primitives position and orientetion

Apr 20, 2008 at 8:10 PM
Edited Apr 20, 2008 at 8:22 PM
I have made a capsule that has center mass in (0, 0, 0).

How must to look the constructor for capsule in this case? As I understand the default capsule model have a center in (0, 0.5, 0) if it size = 1;

Maybe it is a good idea if all physical primitives inside JigLibX by default will have a center mass in vector zero? :)

P.S. Sorry for bad english. :)
Apr 21, 2008 at 7:27 AM
Hi, the center of mass of a body is always in 0,0,0 .... With (0,0.5,0) you move the capsule Primitive to the center.
Apr 23, 2008 at 10:59 PM
Edited Apr 26, 2008 at 7:15 AM
Hi again :). Looks like we can't made a capsule that have radius 1 and length 4 or else. Only 1/2, 2/4, 10/20. Am I right understand? Because when I made a capsule like(little change constructor, instead size I'm set radius and length separately)
new CapsuleObject(this, capsuleModel, 10.0f, 40.0f, capsule.Orientation, Capsule.Position, 20.0f);

The capsule intersection when radius/length != 0.5 is incorrect. Is this right or it's a bug?
Apr 24, 2008 at 10:57 PM
Edited Apr 24, 2008 at 10:59 PM
I mean why
public CapsuleObject(Game game, Model model, float size, Matrix orientation, Vector3 position)


public CapsuleObject(Game game, Model model, float radius, float length, Matrix orientation, Vector3 position)
where radius != length

I try to make a regdoll and I need use more long capsule for it.