Create Actor any ActorParams

chp

04-04-2008 16:08:18

How can I create an actor in nxogre without any params set, which has no shape and will not react on gravity.

betajaen

04-04-2008 16:11:23

An Actor won't exist without a Shape. The PhysX SDK won't allow it; But you could use a very tiny cube (0.001) as a "particle". To ignore gravity, you just raise a body flag.

mActor = mScene->createActor(....);
mActor->raiseBodyFlag(NX_BF_DISABLE_GRAVITY)


I think it's "NX_BF_DISABLE_GRAVITY". Intellisense will show you the other BF flags when you write in the code anyway, it's in there somewhere.

chp

04-04-2008 16:13:12

thank you for the fast reply i will try this