[NxOgre 1.0] actorParams.mFreeze.FreezeRotation();

Tano_ITA

17-05-2009 12:52:57

When i try to use this method, i've this error:

1>c:\users\tano\documents\visual studio 2005\projects\fps 0.1\fps 0.1\physxmanager.cpp(23) : error C2039: 'mFreeze' : is not a member of 'NxOgre::ActorParams'
1> c:\ogresdk\1.0\nxogre\include\nxogreactor.h(179) : see declaration of 'NxOgre::ActorParams'
1>c:\users\tano\documents\visual studio 2005\projects\fps 0.1\fps 0.1\physxmanager.cpp(23) : error C2228: left of '.FreezeRotation' must have class/struct/union


Any idea?

Tano_ITA

19-05-2009 18:20:04

Anyone can help me?

spacegaier

19-05-2009 18:40:15

Well where is your problem. The answer is in the error message?!?

1. error: mFreeze is not a part of ActorParams
2. error: Non static functions can only be used by an instance of a class which you don't have here.

So, what do you need from us? Am I overlooking something?

Tano_ITA

19-05-2009 19:34:55

Well where is your problem. The answer is in the error message?!?

1. error: mFreeze is not a part of ActorParams
2. error: Non static functions can only be used by an instance of a class which you don't have here.

So, what do you need from us? Am I overlooking something?



I've just downloaded the Cake 4.01T and i'm trying to compile it. So in the code there is this settings:

ActorParams actorParams;
actorParams.setToDefault();
actorParams.mMass = 1;
actorParams.mDensity = 0;
actorParams.mLinearDamping = 10;
actorParams.mAngularDamping = 10;
actorParams.mBodyFlags.mDisableGravity = true;
actorParams.mFreeze.FreezeRotation();


Everything goes fine when i delete


actorParams.mBodyFlags.mDisableGravity = true;
actorParams.mFreeze.FreezeRotation();


But i need to freeze the rotation of camera.. So what can i do now? I've just used the cake, and i will undestand why i can't use the FreezeRotation or if there is a new method to freeze rotation o an actor.

Thanks for you reply and sorry for my bad english!

Tano_ITA

21-05-2009 22:30:33

Anyone can told me how can i freeze my camera rotation?

betajaen

21-05-2009 22:41:09

There should be some three boolean values in mFreeze for rotation only, just set them to true.