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 Discussion / Roll problem

Author
Message
Sjakie
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: Netherlands - Delft
Posted: 15th Feb 2004 13:25
I'm making a little flight game to test A.I. for enemy planes. Works cool, the planes get a target and then they fly to the target. Now i want to program the planes to roll when they make a corner. But when i use roll object left (i think the problem is the combination with Euler rotations because the targeting works with euler rotations), the plane rolls, but doesnt rotate anymore with the euler rotations. Is there a roll function with euler rotation (or can somebody make one) that works with euler rotation (i tried xrotate object... but that acts pretty wierd)...?

Juzt a dude who likez progging - Me loves RTS games
The Dream Keeper!
21
Years of Service
User Offline
Joined: 9th Oct 2003
Location: Netherlands! HOLLAND!
Posted: 15th Feb 2004 14:23
There is an example in darkbasic about an flightgame.. you can check that out. And look at the code. Maybe that helps...

Hope i've helped,

The Dream Keeper!

Bring fun to life!!!!!
Sjakie
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: Netherlands - Delft
Posted: 15th Feb 2004 18:46
Yeah i know, but its using the Roll object command, and i dont need that!

Juzt a dude who likez progging - Me loves RTS games
The Dream Keeper!
21
Years of Service
User Offline
Joined: 9th Oct 2003
Location: Netherlands! HOLLAND!
Posted: 15th Feb 2004 21:11
Hmm.. i see your problem. Did you tried xrotate with the wrapvalue? and all that kind of stuff?

Bring fun to life!!!!!
Sjakie
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: Netherlands - Delft
Posted: 15th Feb 2004 22:44
yes, and no response

Juzt a dude who likez progging - Me loves RTS games
Sjakie
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: Netherlands - Delft
Posted: 15th Feb 2004 22:46
Ow BTW the player can roll, because the players turning is all pitch/turn/roll... but the enemy's use euler rotation and thats the point... i need a function to roll with euler rotation thats what its all about

Juzt a dude who likez progging - Me loves RTS games
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 16th Feb 2004 13:08
After about 2 hours, trying to get an example to work, I gave up, hopefully someone has already done this, and can help, or point you in the right direction.

Sorry,
Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
MoonSon
22
Years of Service
User Offline
Joined: 25th Feb 2003
Location:
Posted: 16th Feb 2004 13:58
Funny enough this is exactly what im trying to do, and my post of this problem is half way down the list. Unfortunatly im still stuck too

Login to post a reply

Server time is: 2025-05-23 04:14:37
Your offset time is: 2025-05-23 04:14:37