Share with us how are you using the powerrrr of the force
Moderator: Alain
by ProSoft » Tue Sep 12, 2006 7:55 am
Hi!
Your wrapper is working fine here. I only have problems setting callbacks.
im using
- Code: Select all
Newton::NewtonApplyForceAndTorque^ m_PhysicsApplyForceAndTorque = gcnew Newton::NewtonApplyForceAndTorque( PhysicsApplyForceAndTorque );
Newton::NewtonBodySetForceAndTorqueCallback( carbody, m_PhysicsApplyForceAndTorque );
but it trows an exception after some calls (attempt to read or write protected memory). If i comment all my callbacks, it works fine. Can you please show an example on how to set callbacks?
-
ProSoft
-
- Posts: 2
- Joined: Wed Aug 16, 2006 1:20 pm
- Location: Brazil
by ProSoft » Thu Sep 21, 2006 7:02 am
Do you can undersandme? I dont know how to setup a callback. You, please, can post an example or point to somewhere i can found one?
Thanks.
-
ProSoft
-
- Posts: 2
- Joined: Wed Aug 16, 2006 1:20 pm
- Location: Brazil
by fantastico » Tue Sep 26, 2006 6:07 pm
I am new at Newton. Can you give me a tutorial for this wrapper? I've tried to make something using Irrlicht and Newton.net in C# but I am out with no result. Please help me!
Thank you all!
-
fantastico
-
- Posts: 1
- Joined: Mon Sep 25, 2006 10:19 am
by liberostelios » Tue Oct 03, 2006 10:15 am
I working on writing a simple example of Newton .NET Wrapper using Irrlicht 3D engine and VB .NET. But I am not sure how to convert the matrix that I get after the NewtonUpdate to an OpenGL one (something like matrix4). On C++ they use a function memcpy() but this is not available on VB .NET. Could you please help me?
-
liberostelios
-
- Posts: 3
- Joined: Mon Oct 02, 2006 6:49 pm
by Julio Jerez » Tue Oct 03, 2006 12:47 pm
can 't you do a for loop and copu menmve by menber?
-
Julio Jerez
- Moderator
-
- Posts: 12253
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by liberostelios » Sun Oct 08, 2006 2:50 pm
Well, I made the tutorial work but only when I use the bodysetomega function. If I use bodysetforce or bodysettorque or anything like that it doesn't move the object at all!
Could you think of anything could be wrong?
-
liberostelios
-
- Posts: 3
- Joined: Mon Oct 02, 2006 6:49 pm
by nomad3k » Mon Oct 09, 2006 9:22 am
Can I ask whether this .Net wrapper provides any platform independence? I'm looking to write a system that runs on Windows/Mac/Linux
-
nomad3k
-
- Posts: 2
- Joined: Mon Oct 09, 2006 7:59 am
by liberostelios » Mon Oct 09, 2006 11:43 am
I don't know if .NET can provide platform-indepent applications, generally!
-
liberostelios
-
- Posts: 3
- Joined: Mon Oct 02, 2006 6:49 pm
by nomad3k » Mon Oct 09, 2006 2:06 pm
Yeah, it can.. there's the Mono engine that allows pure .Net code to run on Mac and Linux.
-
nomad3k
-
- Posts: 2
- Joined: Mon Oct 09, 2006 7:59 am
Return to User Gallery
Who is online
Users browsing this forum: No registered users and 0 guests