Need Help Scripting Motor Torque
4 posts • Page 1 of 1
Need Help Scripting Motor Torque
I want to script a motor to have the torque modeling the function 1/x. X being the rotational velocity of the wheels/motor.
I can't figure out how to collect the value of the angular velocity into a usable variable, or where to put the calculations for the variables.
I'm pretty new to scripting, so I apologize if this is a simple problem.
I can't figure out how to collect the value of the angular velocity into a usable variable, or where to put the calculations for the variables.
I'm pretty new to scripting, so I apologize if this is a simple problem.
- halacar
- Posts: 4
- Joined: Wed Apr 25, 2012 10:51 am
Re: Need Help Scripting Motor Torque
it's simple but its not in the tutorial yet... there are new readable functions:
put this into the onHitByLaser of your wheel
aim at it with a laser and youll have a variable (scene.my.)
put this into the onHitByLaser of your wheel
- Code: Select all
scene.my.angvel=(readable(owner)).angvel
aim at it with a laser and youll have a variable (scene.my.)
Last edited by electronicboy on Thu Apr 26, 2012 8:42 pm, edited 1 time in total.
Reason: Fixed spelling mistake in code!
Reason: Fixed spelling mistake in code!
yup yup
yuuuuuuup
yupyupyupyupyupyupyupyupyyyuuuup
hm... signatures...
yuuuuuuup
yupyupyupyupyupyupyupyupyyyuuuup
hm... signatures...
- hiltropper
- Posts: 85
- Joined: Mon Dec 20, 2010 12:02 pm
- Location: Germany
Re: Need Help Scripting Motor Torque
readable
Basically, there are only 10 types of people in the world. Those who know binary, and those who don't.
Light travels faster than sound. That's why some people appear bright until they open their mouths.
Light travels faster than sound. That's why some people appear bright until they open their mouths.
-

monstertje3 - Posts: 343
- Joined: Sat Sep 05, 2009 4:29 pm
- Location: N-H, NL
Re: Need Help Scripting Motor Torque
right
yup yup
yuuuuuuup
yupyupyupyupyupyupyupyupyyyuuuup
hm... signatures...
yuuuuuuup
yupyupyupyupyupyupyupyupyyyuuuup
hm... signatures...
- hiltropper
- Posts: 85
- Joined: Mon Dec 20, 2010 12:02 pm
- Location: Germany
4 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests



