How to get velocity as one number?
3 posts • Page 1 of 1
How to get velocity as one number?
Sorry to be filling up this forum, but I have a non-facepalm-worthy Thyme question to ask all those who know more about Thyme than me.
My question is, how to get the velocity of an object to be one number, so it can be applied to say, a thruster. I ask this because I am trying to make a scripted "airplane" type thing which gathers more lift as speed increases, like an airfoil in real life.
My question is, how to get the velocity of an object to be one number, so it can be applied to say, a thruster. I ask this because I am trying to make a scripted "airplane" type thing which gathers more lift as speed increases, like an airfoil in real life.

(/)(°,,,°)(/)
-

pnvv - Posts: 670
- Joined: Tue Aug 26, 2014 11:46 pm
- Location: Disunited States of America
Re: How to get velocity as one number?
To calc speed from vel:
_speed = {math.vec.len(entity.vel)}
You could just copy-paste already working wings set.
_speed = {math.vec.len(entity.vel)}
You could just copy-paste already working wings set.
Dream of Algodoo as game development engine...
-

Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
3 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests




