How to work with geom transform???

saurabhshukla
Posts: 4
Joined: Wed Jun 03, 2009 10:42 am

How to work with geom transform???

Post by saurabhshukla »

Hi,
I'm converting ode code into bullet physics.
In ode there is a class named geomtransform which convert one geom into another.
it work something like this
dCreateGeomTansform (dGeomID g1, dGeomID g2)
Is there any function that can replace this in bullet physics?

Thanks in advance
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: How to work with geom transform???

Post by Erwin Coumans »

Google didn't find dCreateGeomTansform, you like meant dCreateGeomTransform.

Bullet provides that btCompoundShape, that lets you add one or more child collision shape together with a btTransform.
Thanks,
Erwin
saurabhshukla
Posts: 4
Joined: Wed Jun 03, 2009 10:42 am

Re: How to work with geom transform???

Post by saurabhshukla »

Hi Erwin,

thanks for the reply. ya I was asking for dCreateGeomTransform only.
Could you elaborate how that can be done?
btCompound Shape is used to create compound shapes, isn't it?
how that helps in geomTransform.

I have read in ODE manual that geom is encapsulated by a transform object
and the geom is set to this transform object. Few more functions related to this topic are;
dGeomTransformSetGeom(dGeomID g1, dGeomID g2)
dGeomTransformGetGeom(dGeomID g)

I am getting sense that this can be possible with btCollisionShape and btTransform classes
in bullet. But I am not clear how to implement that

Somebody help me in this