christian thx for the response. i originally tried that but the
jiglib representation didn't account for the hollow cylinder. i have
a ball falling down and should fall into the cylinder but it actually
bounces off the top area where a cap would be. here's my code:
var awayCyl:Cylinder = new Cylinder({material: new
ShadingColorMaterial, segmentsH:1, segmentsW:15, height:50, radius:30,
y:35, openEnded:true,bothsides:true});
view.scene.addChild(awayCyl);
var jcap:JCapsule = new JCapsule(new Away3dMesh(awayCyl),
30, 50);
jcap.movable = false;
jcap.y = 25;
jcap.z = 100;
physics.addBody(jcap);
would you know why this wouldn't work? i couldn't get much info about
jCapsule when i googled it. so it's all trial & error. sorry if this
is a numbskull question.
On Jun 15, 1:00 pm, Christian Östman <[email protected]>
wrote:
> Hi, There is a cylinder in Jiglib! Check out the JCapsule class.
> You will have to create a cylinder-primitive in away and pass it ass
> the skin for the JCapsule to make it work
>
> / C
>
> On Jun 15, 2010, at 9:47 PM, Nu Butthajit wrote:
>
> > Hello, i'm hoping someone can help point me in the right direction.
> > I'm trying to create a cylinder with jiglib. unfortunately there's no
> > cylinder class so I would have to create all the walls that make up a
> > cylinder. i'm creating 5 Rigidbody walls and join them with
> > HingeJoint. when i create the walls and then join them, i would have
> > to move each wall separately if i want to reposition the cylinder
> > within the view. is there a way to add the RigidBodies to a container
> > so that I can just move the container?
>
> > any help would be greatly appreciated!
>
>