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 / Bouyancy question[DP]

Author
Message
General Reed
18
Years of Service
User Offline
Joined: 24th Feb 2006
Location:
Posted: 15th Oct 2006 16:21
how would i change the bouyancy level in the water demo?

General reed

AMD Athlon 64 3200+, 1GB ram, Geforce 6600 GTX, 80GB HDD
Vist www.scratchyrice-dev.co.uk
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 15th Oct 2006 21:31
Basically all the demo does is cycle through every object in the scene, and checks if there dbp object position has gone under a certain point, then it adds resistance both linear and angular.

Which is a very poor method imo, as its a) Slow, b)looks crap, if you had a really long object say a ladder then it wouldent be effected by the water untill its center goes under the water height.

And to answer your question, look for the line that has 'if object position y(objid)<0 and objid>11' and simplychange the value of 0 around, and also there is likely a 2nd value to check to see how far to puch it up, so change that too.

Hallowed are the ori.
General Reed
18
Years of Service
User Offline
Joined: 24th Feb 2006
Location:
Posted: 15th Oct 2006 21:56
Thanks dude!

AMD Athlon 64 3200+, 1GB ram, Geforce 6600 GTX, 80GB HDD
Vist www.scratchyrice-dev.co.uk

Login to post a reply

Server time is: 2024-11-24 14:55:41
Your offset time is: 2024-11-24 14:55:41