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.

DarkBASIC Professional Discussion / Object Scaling And Movement Issues

Author
Message
Dark Java Dude 64
Community Leader
15
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 16th Dec 2010 02:26 Edited at: 16th Dec 2010 03:27
Hello all! So what happens is whenever i try to scale an object, in theory, the object should move a different speed assuming that you see the object the same in both sizes. In other words, if i try to take an object and make it bigger, and it was 10 units long and now its 100, shouldnt it seem to move at a 10th the speed? So how would i make it do that??????


All help is highly appreciated!!

BillR
23
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 16th Dec 2010 04:21
The object would still move at the same speed.
If you moved the camera 10x farther away, then even though the object is moving at the same speed as before, it would appear to be moving slower because of the cameras farther distance away.

So, without moving the camera, to move an object slower, you really do have to move an object slower, floating point numbers are great for this.
Dark Java Dude 64
Community Leader
15
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 16th Dec 2010 04:37
I see. It wasn't much of an issue, it just felt weird to use gobs and gobs of floats xD Thanks

Login to post a reply

Server time is: 2026-07-21 07:02:55
Your offset time is: 2026-07-21 07:02:55