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 GDK / Scaling object to absolute size?

Author
Message
_Pauli_
AGK Developer
15
Years of Service
User Offline
Joined: 13th Aug 2009
Location: Germany
Posted: 5th Sep 2009 13:09
How can i scale an object to an absolute size instead of just a percentage of it's original size?
Let's say i want to scale my object to a size of 50 x 50 units, how would i do this?

They say it's better to burn out, than it is to fade away...
CuCuMBeR
21
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 5th Sep 2009 13:38
This is DBPro code, im sure you can change it to dgdk code.



There is always one more imbecile than you counted on.
_Pauli_
AGK Developer
15
Years of Service
User Offline
Joined: 13th Aug 2009
Location: Germany
Posted: 5th Sep 2009 13:45 Edited at: 5th Sep 2009 13:46
Hey, thanks for your quick reply!
But after thnking about maths a bit i figured it out, too
Here's my function:


They say it's better to burn out, than it is to fade away...
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 5th Sep 2009 13:53
You can also get the current scale via dbGetObject( ID )->position.vecScale, where the values are 1.0 scale multipliers.

_Pauli_
AGK Developer
15
Years of Service
User Offline
Joined: 13th Aug 2009
Location: Germany
Posted: 5th Sep 2009 14:17
cool!
thanks for the info!

They say it's better to burn out, than it is to fade away...

Login to post a reply

Server time is: 2024-11-19 04:11:46
Your offset time is: 2024-11-19 04:11:46