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 / weird looping problem

Author
Message
Wikaman1
16
Years of Service
User Offline
Joined: 17th Aug 2008
Location: Scotland
Posted: 2nd Mar 2009 16:09
I'm currently trying to make a function that creates and positions a sphere that you can pickup for health or whatever. I thought I would need to create 2 functions, 1 for outside the loop and 1 for inside the loop. This is the first function -





I then call pickup(100,0,100); out side the loop

this is the second function




I then call pickup_loop() in the main loop but it does not appear to be looping, only rotating by 5 degrees once when I run the program instead of rotating by 5 degrees every frame. Anyone tell me why? thanks
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 2nd Mar 2009 16:17


Wikaman1
16
Years of Service
User Offline
Joined: 17th Aug 2008
Location: Scotland
Posted: 2nd Mar 2009 16:27
wow quick response, thanks for your help it works now
jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 2nd Mar 2009 19:12
As an explanation, dbrotateobject uses absolute euler value for the rotation, so you are saying "I want the sphere pointing right", as opposed to "turn the sphere right" or whatever. If that makes sense.

Login to post a reply

Server time is: 2024-09-30 19:27:44
Your offset time is: 2024-09-30 19:27:44