creating an elevator

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

creating an elevator

Postby Scorpion » Sun Dec 07, 2008 11:17 am

hello I started creating an elevator, but had not the biggest success with it...

I want to have a platform, that always moves between 2 positions. Its angles should be fixed and if something falls on it it should react(just the position, not the angles)

For the movement I did this in the fore and tourque callback and added damping:
Code: Select all
vec_set(force,my.newPos);
vec_sub(force,my.x);
vec_scale(force,100);
NewtonBodySetForce(body, force);

It should be exactly on the 'newPos', but it's always moving around it in circles.

Can you tell me how i can create the wanted behavior exactly?

Thank you
Scorpion
Scorpion
 
Posts: 12
Joined: Tue Jan 22, 2008 5:53 pm

Re: creating an elevator

Postby JernejL » Sun Dec 07, 2008 3:53 pm

Try a slider joint.
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1531
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: creating an elevator

Postby Scorpion » Mon Dec 08, 2008 11:12 am

how can i restrict its rotation completly then?
Scorpion
 
Posts: 12
Joined: Tue Jan 22, 2008 5:53 pm

Re: creating an elevator

Postby Landix » Sun Dec 14, 2008 7:47 am

I offer 25€ for a solution ca. 50$

we need this code urgent.
it should work in 3d gamestudio, i hope someone can help.

you should have a paypal account!

i transfer the money when scorpion say that the code ist OK.

when you are interested to be a part of the game contact me:

http://www.ballbalo.quakeit.de/
Landix
 
Posts: 13
Joined: Sun Jul 08, 2007 1:53 am
Location: Germany

Re: creating an elevator

Postby Aphex » Mon Dec 15, 2008 9:08 am

Did you try using a slider? Can you show your joint setup code if so?
Aphex
 
Posts: 144
Joined: Fri Jun 18, 2004 6:08 am
Location: UK

Re: creating an elevator

Postby Landix » Mon Dec 15, 2008 5:52 pm

we work on it, we have found someone.

i post a result here.
Landix
 
Posts: 13
Joined: Sun Jul 08, 2007 1:53 am
Location: Germany

Re: creating an elevator

Postby Dave Gravel » Mon Dec 15, 2008 6:36 pm

You search a nice physics solution, if you can read this message you're at the good place :wink:
OrionX3D Projects & Demos:
https://www.facebook.com/dave.gravel1
http://orionx3d.googlepages.com/
https://www.youtube.com/user/EvadLevarg/videos
User avatar
Dave Gravel
 
Posts: 725
Joined: Sat Apr 01, 2006 9:31 pm
Location: Quebec in Canada.

Re: creating an elevator

Postby Landix » Tue Dec 16, 2008 6:56 am

exact, but i wait for a coder this afternoon. (he was first)

When he failed i can contact you?
Landix
 
Posts: 13
Joined: Sun Jul 08, 2007 1:53 am
Location: Germany

Re: creating an elevator

Postby Dave Gravel » Tue Dec 16, 2008 8:04 am

Sure and it is free, but I accept donation too hehehe.
Viva the christmas day'$$$
You search a nice physics solution, if you can read this message you're at the good place :wink:
OrionX3D Projects & Demos:
https://www.facebook.com/dave.gravel1
http://orionx3d.googlepages.com/
https://www.youtube.com/user/EvadLevarg/videos
User avatar
Dave Gravel
 
Posts: 725
Joined: Sat Apr 01, 2006 9:31 pm
Location: Quebec in Canada.


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests