Newton C# Wrapper

Share with us how are you using the powerrrr of the force

Moderator: Alain

Re: Newton C# Wrapper

Postby JernejL » Sun Feb 14, 2010 4:33 pm

NewtonGetEulerAngle might be what you need.

But use matrix instead, it's much less error-prone.
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1391
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: Newton C# Wrapper

Postby JernejL » Mon Feb 15, 2010 9:27 am

Did you create the world correctly first? the function should not fail - check the wrapper.
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1391
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: Newton C# Wrapper

Postby JernejL » Mon Feb 15, 2010 12:16 pm

DevilsChild wrote:as I just saw, the wrapper was for version 1.5. there it just works fine.
i'm looking for a wrapper using the latest version of Newton...
can you point me to some sort of "official wrapper" for c#. is there one using the latest version? is there "a best" wrapper for that?

edit: ok. i can get the euler angles. how do i get the position now ? :oops:


The matrix itself is a array of floats, the bottom row has the XYZ coords.
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1391
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: Newton C# Wrapper

Postby JernejL » Mon Feb 15, 2010 2:21 pm

There is no global gravity, you apply gravity in forcetorque callback.
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1391
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: Newton C# Wrapper

Postby JernejL » Tue Feb 23, 2010 9:52 am

Werent there any demos for the 1.53 C# wrapper?
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1391
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: Newton C# Wrapper

Postby JernejL » Tue Feb 23, 2010 11:39 am

DevilsChild wrote:just the one i found in the thread:
viewtopic.php?f=14&t=1208

but it doesn't work for me. i think i need to use callbacks and i duno how. also my box is not "falling". and i didn't understand the thing with "you must set gravity for each mesh" :(


You need to apply gravity by yourself in the forcetorque callback, the callbacks are a essential part of newton and programming logic, so learn how they work.
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1391
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: Newton C# Wrapper

Postby coimbra79 » Sat Dec 24, 2011 5:17 am

hi! devilschild

if you see something without error using NGD & C # I would be happy if it were possible to have the full code. I've tried it, but probably something wrong ...
tnk
User avatar
coimbra79
 
Posts: 42
Joined: Sun Jun 27, 2010 1:39 pm


Return to User Gallery

Who is online

Users browsing this forum: No registered users and 2 guests