PDA

View Full Version : PAL physics :confused:


Selene
04-25-2010, 04:40 PM
Hello,

Im not sure if this is the right forum, but there's still a chance that someone can help me.
I just started using PAL physics, but i already got stuck compiling the demo code for PAL.
Here's the error I got:

(13) : error C2660: 'palPhysics::Init' : function does not take 3 arguments

The line where the error is it's: "pp->Init(0,-9.8f,0);"

If anyone has any idea of what can I do to solve this, please help.

Thanks.

Tyga
04-26-2010, 08:35 PM
Well, i don't have the source with me but it looks pretty self explanatory,

( i am beginner at coding)

I'm guessing that (0,-9.8f,0) should be Boolean value, try setting it to either 1 or 0

(true of false)

Again, i am complete crap at coding so i could be completely wrong.


edit: or it can only take in 1 integer, not 3

Selene
04-26-2010, 09:17 PM
Hello, Thank you for trying to help, I appreciate it :). The actual problem is that the code was changed a bit. Here is how it should be now:

palPhysicsDesc desc;

desc.m_vGravity.x = 0.0;
desc.m_vGravity.y= -9.8f;
desc.m_vGravity.z = 0.0;

desc.m_nUpAxis = 1;

pp->init(desc)