A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by r4ccoon » Fri Nov 20, 2009 8:42 am
small mistake on variable name hei.. lol..
i have the same mistake on meshinstance.cpp. which where i am calling the .x. and i have put your fix there,
and yeah, the terrain has different class from the mesh(.x)
the other things i did..
create new setcallback method only for terrain.
the callback actually not doing anything because nothing would happen to it right.?
and i left other thing as it is(after applied your code).
and it still doesnt move at all..
FYI maybe my hardware that causing this?, because i am on 64 bit windows 7 machine. and i am compiling for 32 bit. and i am using the 32 bit dll and lib. ???
-
r4ccoon
-
- Posts: 12
- Joined: Wed Nov 18, 2009 3:52 am
by Julio Jerez » Fri Nov 20, 2009 8:53 am
I use Vista 64 in 32 and 64 bit an dit work, it should work for you too.
make sure you are linking the correct libraries.
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by r4ccoon » Fri Nov 20, 2009 9:29 am
haha..
yeah it is the lib file.
i have the 2.08 version luring in the folder.
i have deleted the 2.08 from the c++ include configuration .
and now my crate is flying. lol.
thank you.
and if you have more time for me.
how do i fix the crate, because it s flying now. (defying the gravity).
it should dropped to the terrain.
-
r4ccoon
-
- Posts: 12
- Joined: Wed Nov 18, 2009 3:52 am
by Julio Jerez » Fri Nov 20, 2009 11:15 am
you need to make sure the gravity is applied properly in the callback.
check the intro demo it is very simple and show step by step how to get it going.
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by r4ccoon » Sun Nov 22, 2009 3:24 pm
it s been a while.
i ve been checking the gravity in the callback. the gravity is getting valued at ApplyForceAndTorqueCallback.
what value it has to be in the gravity? -10 or 10?
i thought it was by changing the value between minus to positive would give me different result but the crate is always flying up.
-
r4ccoon
-
- Posts: 12
- Joined: Wed Nov 18, 2009 3:52 am
by thedmd » Sun Nov 22, 2009 4:51 pm
Gravity depends from your coordinates system. If Y is your up vector you should use {0, -9.81, 0}. Of course exact values and direction is totally up to you.
-
thedmd
-
by r4ccoon » Mon Nov 23, 2009 8:36 am
gracias.!!..
i am going to follow the raycast sample now. wish me luck!
-
r4ccoon
-
- Posts: 12
- Joined: Wed Nov 18, 2009 3:52 am
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 1 guest