IonicWind Software

Aurora Compiler => 3D Graphics => Topic started by: J B Wood (Zumwalt) on August 02, 2006, 04:36:54 PM

Title: Movement question.
Post by: J B Wood (Zumwalt) on August 02, 2006, 04:36:54 PM
I am drawing a mind blank and I know this is wrong, only because its like driving a rocket car:



IF di.KeyDown(DIK_UP)
{
tankMotion.x=myMesh.x+tankdir.x;
tankMotion.y=myMesh.y+tankdir.y;
tankMotion.z=myMesh.z+tankdir.z;
z.Position(tankmotion.x,tankmotion.y,tankmotion.z-.25f * fAdjust);
}



I need a throttler to reduce the movement of my tank.
I think what is wrong is that my tankdir should be a smaller value, come to think of it, maybe I should multiple it or devide each by a certain number to gain a fraction... its something simple.. on the tip of my tongue, got to go get dog food.. be back soon hopefully I'll have it though through by then.
Title: Re: Movement question.
Post by: J B Wood (Zumwalt) on August 03, 2006, 12:08:16 PM
I am an idiot, nevermind, its fixed, simple as heck.
x+angle*speed
y+angle*speed
z+angle*speed

simplified

Title: Re: Movement question.
Post by: Ionic Wind Support Team on August 03, 2006, 02:15:21 PM
Knew you could get it ;)
Title: Re: Movement question.
Post by: J B Wood (Zumwalt) on August 03, 2006, 02:30:48 PM
Have you taken a look at the project with these changes yet?
Title: Re: Movement question.
Post by: kryton9 on August 03, 2006, 03:15:20 PM
Just got back home, wow, great job zumwalt, fun driving the tank all over the place. Nice smooth motion and nice camera tracking too.

Thanks for your efforts!!
Title: Re: Movement question.
Post by: Ionic Wind Support Team on August 03, 2006, 03:48:24 PM
Been bogged down with work lately, and working in Linux at the moment.  But I have been watching your changes.

Should make a greate demo.
Title: Re: Movement question.
Post by: J B Wood (Zumwalt) on August 03, 2006, 04:40:17 PM
Thanks, just got home from work myself, going to finish up the inertia add on, then adding a second camera angle, solid behind the tank following it around, also adding in an adapted information display that will be static to the tank itself (rather above the tank but always facing the camera)
I'll post another update later tonight with those two changes, the information block will have a dummy image on it for now.
Title: Re: Movement question.
Post by: J B Wood (Zumwalt) on August 03, 2006, 05:47:09 PM
Let say I want to display Ascii, what is the command this editor takes to take a hex of like 0x201 or C9 and display its ascii image?
Title: Re: Movement question.
Post by: Ionic Wind Support Team on August 03, 2006, 11:44:33 PM
hex$ or NumToHex will work.
Title: Re: Movement question.
Post by: J B Wood (Zumwalt) on August 04, 2006, 06:26:18 AM
Thanks Paul, going to use that ALOT tonight :)
Title: Re: Movement question.
Post by: J B Wood (Zumwalt) on August 05, 2006, 08:44:23 AM
Not the result I want, Hex$(201) is supposed to give me the double left corner elbow ascii character, Instead it gives me C9.
Title: Re: Movement question.
Post by: Ionic Wind Support Team on August 05, 2006, 09:11:02 AM
Your talking about the old dos character set.  Not used in Windows much these days.

Set you font to Terminal and use the OEM characterset.   
Title: Re: Movement question.
Post by: J B Wood (Zumwalt) on August 05, 2006, 10:30:44 AM
How do I set the font to terminal?
Title: Re: Movement question.
Post by: Ionic Wind Support Team on August 05, 2006, 10:41:08 AM
Depends on what your using.  For a 3D screen their isn't a way to change the font in Rev 7, but there is in Rev 8 which I am working on now.   For any other window just use the SetFont method.

Title: Re: Movement question.
Post by: J B Wood (Zumwalt) on August 05, 2006, 10:44:35 AM
Its for 3D. I want to set the font and use "\xC9" using Terminal for that s.Rendertext only. Basically I want to be able to use multiple fonts, and choose the font used on each render line.

I will hold off on further development until the next release then, gives me a reason to get out of the house today.