friction and the drag when sidestepping
by Earl Li · in Torque Game Engine · 12/15/2001 (10:53 am) · 4 replies
Hello, I tried to remove the drag when the player sidesteps...eg. When the player sidesteps leftwards..and I want to immediately sidestep towards the right, there's a drag...
I tried the player.cs file...and tried to change the drag variables to 0
can someone tell me, if you know, which variable is the correct one?
thanx for your time :)
also this may be a stupid question, but im kinda new to scripting..whats the difference between % and $ in the scripts? :D
I tried the player.cs file...and tried to change the drag variables to 0
can someone tell me, if you know, which variable is the correct one?
thanx for your time :)
also this may be a stupid question, but im kinda new to scripting..whats the difference between % and $ in the scripts? :D
About the author
#2
now I only need to know what the variables mean and what they affect/relate to.
I see a lot of variables that are already in the scripts...I was wondering if there's some sort of a reference that I could look up so I know what each variable is..
eg. maxforwardspeed = ##
that maxforwardspeed is pretty self explanatory, but some other's arent as clear...such as
dragcoefficient = ##
:) thanx for your time
12/15/2001 (12:54 pm)
thanx for the quick reply chris! appreciated ! :))now I only need to know what the variables mean and what they affect/relate to.
I see a lot of variables that are already in the scripts...I was wondering if there's some sort of a reference that I could look up so I know what each variable is..
eg. maxforwardspeed = ##
that maxforwardspeed is pretty self explanatory, but some other's arent as clear...such as
dragcoefficient = ##
:) thanx for your time
#3
12/17/2001 (6:32 pm)
There is no global reference for object attributes. It's ask on the forums, or look through the code. Not necessarily in that order :)
#4
There is no left/right drag, what you're seeing is the result of the players max. acceleration which is a function of the player's run force and mass. Increasing his runForce will make the player respond quicker.
12/17/2001 (6:38 pm)
I believe drag coefficient is just standard velocity scale factor per time step (a basic euler approximation of what is really a differential equation).There is no left/right drag, what you're seeing is the result of the players max. acceleration which is a function of the player's run force and mass. Increasing his runForce will make the player respond quicker.
Torque Owner Chris "Dark" Evans
To keep things simple you'd want to use the local variables the most and pass them through the different functions. The global variables are for things that multiple functions need access to, like $Pref::Player:Name (on the client), and $Server::TestCheats (on the server).
You can also access the global variables from the engine itself.
Dark