shapeGroup

magura

12-04-2006 09:54:58

im still using the previous release of nxOgre, 0.5 preview 2.

I've been making do with the physical shape for one of my objects as a single box. Now however, i want to make it into a group of boxes using shapeGroup.

Its not working however - i get a link error, saying that the destructor for shapeGroup doesnt exist - so i defined it. Then i get a runtime error as the shapeGroup has not been created 'properly'.

Whats the dealio? I checked the code for version 3.0 and the shapeGroup doesnt seem to have changed, so I'm not updating just yet.

Cheers for any light on this issue :)
Geoff

magura

12-04-2006 10:03:01

Or should I be using convexShape instead?

magura

12-04-2006 10:07:15

Oh, i think what's happened is I tried adding a shapeGroup to vehicle's own shapeGroup - and as the code explicitely says, you cant have a group of groups.. Will see how this works out :)

magura

12-04-2006 10:44:59

yep, just needed to add the shapes to vehicle's shapeGroup member, rather than making my own and adding it heh. Oops.

betajaen

12-04-2006 11:05:44

Yep, you should use the vehicles shapeGroup for that and you can't have a group in a group.

Glad it sorted itself out for you. :D