Physics Importer, ogremax and NxOgre

havokentity

03-08-2009 16:29:21

Hi,

anyone know how to load an ogremax level and based on the custom user data, create a physics body
for the same.

I've tried the callbacks, but I can't seem to find the right method to override.. Is it CreatedEntity?

TeaBag

04-08-2009 12:03:07

Hi,

I don't use the User Data for exactly that purpose but to read the UserData you should override the HandleObjectExtraData method. In the CreatedEntity AFAIK you don't have access to the UserData.

havokentity

04-08-2009 14:09:20

Hi,

Thanks.

Got it working following what you said :)

I'm using HandleObjectExtraData and adding physics bodies following the NxOgre Tutorial Simple Sample.

Is it efficient to use NodeRenderableParams etc?

Thanks.

TeaBag

04-08-2009 14:55:22

That I really don't know. Sorry. Hope that someone else can help you with that.

Vectrex

05-08-2009 12:56:18

Ask Derek at www.ogremax.com

havokentity

05-08-2009 13:44:15

Thanks.

But NodeRenderableParams is part of NxOgre, isn't it?