Page 1 of 1

Relativity

PostPosted: Fri Mar 19, 2004 5:01 pm
by ingsan
Imagine you are an Actor walking with a xvelocity 5.
On and on a Ball is thrown in your direction at a xvelocity of -3 (ie Coming towards you when you walk Rightway)
Finally, as you walk, the View follows you with the same Velocity as the Actor (ie 5)

If you do a quite calculation, you'll easily find that there is a problem ! As you are walking at a Velocity of 5, with a View doing the same thing, and that the Ball is going the other way at a velocity of -3, you result with a Ball being Slowed Down (as it's now moving with a xvelocity of 2). And if you decide to walk Left (ie in thesame direction of the ball) the Ball then moves Faster (ie xvelocity becomes -8 ).

Am i making myself clear ? :? What i would like to know is: can we make a velocity that is Relative to the View or Actor ? :?

PostPosted: Fri Mar 19, 2004 8:48 pm
by Just4Fun
Whew! ingsan,

You ask some hard questions! I wish that I could help. :oops:

How did you start learning the GE scripting Language so quickly :?:

I have dabbled in 'C', but much of the syntax doesn't seem to work in GE script... :!:

PostPosted: Fri Mar 19, 2004 9:03 pm
by ingsan
:oops: Sorry for these kinds of questions ... but as i don't know very very much about C funtion, i ask impossible things with the hope that there is one Miracle solution :)

i want to answer one of your question.

How did you start learning the GE scripting Language so quickly


Without GE and Maxslane and This Forumand ... Mr Green :mrgreen: , i think i would have remained the little 3Dgraphist that i was :cry: Now i can manage to understand and make some funny little codes :)

So i THANK YOU ALL :mrgreen:

PostPosted: Fri Mar 19, 2004 9:34 pm
by phractus
I havent tried yet but im sure you can do things relative to the screen. Even if you can use the velocity functions(iv yet to for whatever reason) You can just use the view variables as reference for the calculations in the script editor. Let me know how this gos ill try to work some stuff out if ya want me to.
~peace~

PS: Is mr green refrencing ganj? not sure how the french work :wink: j/k

PostPosted: Fri Mar 19, 2004 9:48 pm
by ingsan
:lol:

Well i'm not really French :mrgreen: i actually come from the islands :mrgreen:
Mauritius to be more precise

PS I would be really glad if you could help! That would be great !
Thanx :wink:

PostPosted: Fri Mar 19, 2004 9:50 pm
by phractus
The islands? What islands?

Edit: I hadda scroll down, lol. I dont know where those are in the world. I wanna move over to Sicily sometime, Id love that.
~peace~

PostPosted: Fri Mar 19, 2004 10:24 pm
by ingsan
Image
Go there first :wink:

Re: Relativity

PostPosted: Sat Mar 20, 2004 4:18 pm
by makslane
ingsan wrote:What i would like to know is: can we make a velocity that is Relative to the View or Actor ?


Use this:

xvelocity = your_x_velovity + view.xvelocity;

PostPosted: Sun Mar 21, 2004 10:56 am
by ingsan
For what i want to do, i ought to put :

xvelocity= my_xvelocity - view.xvelocity ;

So the ball (-xvelocity) doesn't seem to stop when view goes +x and seems to go very fast when view goes -x.

But your code obviously gave me the tip ! 8)
Thanx pale !