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 / Rolling ball problem.

Author
Message
z_man
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: Australia
Posted: 12th Jun 2007 13:51
Hi

I have been trying to 'translate' DP into my game. All is good except for one thing. The main character in my game, a ball, does not accurately rotate. It looks as though the ball is rolling on ice - eg . it rolls left properly, then when I press the right key, it turns but not at the same rate as the actual speed of the ball.

Sorry, I am new to DP so this may have an easy answer, but I searched and found nothing really like this.

z_man

Intel Core 2 Duo 6600 2GB DDR2 RAM Radeon X1600 Series Realtek Sound System

Persist and you will succeed.
bdgbdg
18
Years of Service
User Offline
Joined: 30th Jul 2006
Location:
Posted: 12th Jun 2007 20:31
This comand is what you need:



Play a little with it...

Why are you reading this?
z_man
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: Australia
Posted: 13th Jun 2007 03:23
No, that is what I am using at the moment. I don't really like the 'ice' effect. Here is the code to move the ball.



Thanks

Intel Core 2 Duo 6600 2GB DDR2 RAM Radeon X1600 Series Realtek Sound System

Persist and you will succeed.
Codger
22
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 13th Jun 2007 03:37
Look at the material characteristics of the ball and the floor the ball is rolling on. You may wish to copy some of the materials from the sticky thread at the start of this forum

DP takes a lot of trial and error to ensure that the reactions of objects appear correct

System
PIV 2.8 MZ 512 Mem
FX 5600 256 mem
z_man
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: Australia
Posted: 13th Jun 2007 04:33
Basically, the ball should never slide, but it should never lose speed, or be hard to accelerate either. I suppose it is against real life physics, but basically, thats what I need. It needs to be easy for the user to control the ball. I tried the wood material but the 'ice' effect still exists, whereas if you had a wooden ball and a wooden floor in real life, it would grip quite well.

z_man

Intel Core 2 Duo 6600 2GB DDR2 RAM Radeon X1600 Series Realtek Sound System

Persist and you will succeed.
Codger
22
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 13th Jun 2007 04:42
Actually wood is a relatively hard surface and therefore has little friction. You need to use something like rubber

System
PIV 2.8 MZ 512 Mem
FX 5600 256 mem
z_man
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: Australia
Posted: 13th Jun 2007 05:52 Edited at: 13th Jun 2007 05:52
This is really starting to confuse me. Is there a way to have little friction, but make the ball's texture roll properly? The rubber did not work.

Intel Core 2 Duo 6600 2GB DDR2 RAM Radeon X1600 Series Realtek Sound System

Persist and you will succeed.
Codger
22
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 13th Jun 2007 07:01
Z_Man
One of the most important thing to remember when using DP is that the size of the object is important. The default units are meters, If your ball is 1 unit it is 1 meter or nearly 40" diameter. In DP this matters . Adjust your game to real units not just Arbitrary values


Here is a material I used for a pool game in the software competition.



Codger

System
PIV 2.8 MZ 512 Mem
FX 5600 256 mem
z_man
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: Australia
Posted: 13th Jun 2007 07:15 Edited at: 13th Jun 2007 07:28
Oh ok, so size does matter? I have changed the ball from 10.0 to 1.0 and I have used this ratio on everything else too although I can't see any difference.

Thanks for the support - I still am getting used to DP.

Intel Core 2 Duo 6600 2GB DDR2 RAM Radeon X1600 Series Realtek Sound System

Persist and you will succeed.
z_man
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: Australia
Posted: 23rd Jun 2007 04:00
Ok, I have been without internet for the last week, so I have been experimenting on my own, but I can't get the desired effect. If I have lots of friction, the ball rotates correct, but moves too slow. If I increase the speed of the ball, then it starts sliding again. It is very strange.

Any help is much appreciated, this has been an issue for the last week or so.

Thanks

Intel Core 2 Duo 6600 2GB DDR2 RAM Radeon X1600 Series Realtek Sound System

Persist and you will succeed.

Login to post a reply

Server time is: 2024-11-24 20:05:16
Your offset time is: 2024-11-24 20:05:16