Simple Hello World Newton example

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Simple Hello World Newton example

Postby mindwar » Wed Dec 04, 2013 6:35 pm

Hey comunity,

Im new to Newton and i'm searching for a good and very basic Newton Core 300 example but dont find any :(...
Can someone give me a very basic Newton Core 300 tutorial on how to set up the engine and ... just make a plane with a cube falling on it...

The Bullet Physics engine have a really good "Hello World" example so i would apreciate it if someone give me something like that with newton 3.

www.bulletphysics.org/mediawiki-1.5.8/i ... ello_World

Thanks in advance

mindwar
mindwar
 
Posts: 5
Joined: Wed Dec 04, 2013 6:20 pm
Location: Germany

Re: Simple Hello World Newton example

Postby Julio Jerez » Wed Dec 04, 2013 7:21 pm

there are soem old totorial in the wiki, but they are too old,
I see if I can llog in tonigh and make a simple one for core 300.
I will make tow, one usin teh CNewton class and one using the C interphase.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Simple Hello World Newton example

Postby Julio Jerez » Fri Dec 06, 2013 12:02 pm

ok I added a core 300 tutorial, if you sync to SVNu will find in folder: ../newton-dynamics/applications/tutorialsSDK300/NewtonTutorials
it is free fall balling on a flat plane, this I how the excel plot looks like.
freefall.png
freefall.png (7.21 KiB) Viewed 3425 times


Tomorrow I will make another that use the CNewton Class, and writ the documentation in the wiki
but if you sync to SNV the and open the visual studio 2010 project, it should be very straightforward,
I hope this help yup put
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Simple Hello World Newton example

Postby mindwar » Fri Dec 06, 2013 3:18 pm

Yes thank you that helps alot!!!

greetings
mindwar
mindwar
 
Posts: 5
Joined: Wed Dec 04, 2013 6:20 pm
Location: Germany

Re: Simple Hello World Newton example

Postby Julio Jerez » Fri Dec 06, 2013 4:28 pm

did you sync to svn, and saw it?

do you predferr C ot C++
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Simple Hello World Newton example

Postby mindwar » Fri Dec 06, 2013 7:49 pm

Yes i've synced and saw it :) Thank you...

But just that i had to rename some variables e.g. dmatrix -> dgmatrix etc...
but thats easy...

BTW i prefer C++ more but using the c api in my project is good for me

Thanks again for this fast and good support :)

greetings

mindwar
mindwar
 
Posts: 5
Joined: Wed Dec 04, 2013 6:20 pm
Location: Germany

Re: Simple Hello World Newton example

Postby Julio Jerez » Fri Dec 06, 2013 9:31 pm

ha if you use C++, I will also goin to make teh C++ bade demo tomorrow.
maybe that one will be eassier for you to use.
The CNewton Class encapulset the newton low leve into classes
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Simple Hello World Newton example

Postby mindwar » Sat Dec 07, 2013 3:59 pm

ok thank you...that would be awesome
mindwar
 
Posts: 5
Joined: Wed Dec 04, 2013 6:20 pm
Location: Germany

Re: Simple Hello World Newton example

Postby Julio Jerez » Sun Dec 08, 2013 6:59 am

ok I added the Cpp tutorial using the CNewton class,if you sync to SVM you will find the a visual studio solution in folder:
../newton-dynamics/applications/tutorialsSDK300/CNewtonTutorials
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Simple Hello World Newton example

Postby mindwar » Sun Dec 08, 2013 2:06 pm

Thank you again! really nice!
mindwar
 
Posts: 5
Joined: Wed Dec 04, 2013 6:20 pm
Location: Germany


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests

cron