Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark Physics & Dark A.I. & Dark Dynamix / Trying to do a lift or an elevator

Author
Message
TheZag
16
Years of Service
User Offline
Joined: 11th Feb 2008
Location: Milan Italy
Posted: 25th Mar 2008 18:41
After doors, I'm trying to create a box that can take the actor up, and probably also down.

I'm going mad and need a little help...
This is the code:



I'm trying to move up all the elements... but nothing. My actor, for first time is well down on the ground... ?!?!
Thanks for any help!
culmor30
17
Years of Service
User Offline
Joined: 16th Jun 2007
Location: In my head.
Posted: 25th Mar 2008 22:48
Did you set object 4 up with physics? Like, PHY MAKE RIGID BODY STATIC BOX 4? You can't use physics commands on it if not. And it won't interact with other physics objects.

Another thing, after you set it up, you can't use normal DBP commands on it such as MOVE OBJECT UP. I'll make an example of this for you. Hang on, I'll edit this post.
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 25th Mar 2008 23:15
For moving platforms/lifts etc.. I would suggest you use the Kinematic Body in DarkPhysics. They allow you to take full control and precise control of the position, movement & rotation.

Much good work is lost for the lack of a little more.
culmor30
17
Years of Service
User Offline
Joined: 16th Jun 2007
Location: In my head.
Posted: 25th Mar 2008 23:25
Yeah, or do something like this:



Definitely use kinematic, but I was just showing you a quick example of how to set stuff up. Sorry bout the crappy quick example, but I've gotta run :\
Tinyschu
18
Years of Service
User Offline
Joined: 31st Dec 2005
Location: Toxin Games Studio
Posted: 27th Mar 2008 04:38 Edited at: 27th Mar 2008 04:39
I edited the code that culmore30 gave and made sure that the platform did not rotate if the object when to the sides of the platform. I also made the elevator go up and down smoothly.



TheZag
16
Years of Service
User Offline
Joined: 11th Feb 2008
Location: Milan Italy
Posted: 28th Mar 2008 19:28
Thanks to all, I'll try it immediately.
silly duck wit skillz
18
Years of Service
User Offline
Joined: 31st Aug 2006
Location: the world is my home : D
Posted: 13th Jun 2008 02:10

Login to post a reply

Server time is: 2024-11-24 22:31:05
Your offset time is: 2024-11-24 22:31:05