velocityModelSpace: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
Lou Montana (talk | contribs) m (Text replacement - ">Posted on December ([0-9]{2})[ a-zA-Z]*, ([0-9]{4})" to ">Posted on $2-12-$1") |
||
(25 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 | |game1= arma3 | ||
|version1= 0.50 | |||
|0.50 | |||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
| Returns the velocity (speed vector) of the vehicle as an array with format [x, y, z]. Vector is in model space. | |descr= Returns the velocity (speed vector) of the vehicle as an array with format [x, y, z]. Vector is in model space. | ||
| | |s1= [[velocityModelSpace]] vehicle | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] | ||
| [[Array]] | |r1= [[Array]] | ||
|x1= <sqf>velocityModelSpace _chopper; | |||
comment "Returns [X (left(-) right(+)), Y (backward(-) forward(+)), Z (down(-) up(+))]";</sqf> | |||
| | |seealso= [[setVelocityModelSpace]] [[velocity]] [[speed]] [[setVelocity]] [[setVelocityTransformation]] | ||
}} | }} | ||
<dl class="command_description"> | |||
<dt></dt> | |||
<dd class="notedate">Posted on 2014-12-11 - 02:55 (UTC)</dd> | |||
< | |||
< | |||
<dd class="notedate">Posted on | |||
<dt class="note">[[User:Pierre MGI|Pierre MGI]]</dt> | <dt class="note">[[User:Pierre MGI|Pierre MGI]]</dt> | ||
<dd class="note"> | <dd class="note"> | ||
Line 41: | Line 31: | ||
If not "physically" correct, the behavior is sufficient enough for Arma flight model. | If not "physically" correct, the behavior is sufficient enough for Arma flight model. | ||
</dd> | </dd> | ||
< | <dt></dt> | ||
< | <dd class="notedate">Posted on 2015-06-21 - 02:36 (UTC)</dd> | ||
<dd class="notedate">Posted on | |||
<dt class="note">[[User:K.J.|K.J.]]</dt> | <dt class="note">[[User:K.J.|K.J.]]</dt> | ||
<dd class="note"> | <dd class="note"> | ||
Previous note is physically incorrect. Velocity can not be used to give information about Thrust/Load ratio or G-Forces/acceleration. To get acceleration you have to create the derivative of velocity after time dv/dt -> the difference of velocity between 2 timesteps divided by the time that passed between the 2 steps. | Previous note is physically incorrect. Velocity can not be used to give information about Thrust/Load ratio or G-Forces/acceleration. To get acceleration you have to create the derivative of velocity after time dv/dt -> the difference of velocity between 2 timesteps divided by the time that passed between the 2 steps. | ||
</dd> | </dd> | ||
</dl> | </dl> | ||
Revision as of 00:13, 14 May 2023
Description
- Description:
- Returns the velocity (speed vector) of the vehicle as an array with format [x, y, z]. Vector is in model space.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- velocityModelSpace vehicle
- Parameters:
- vehicle: Object
- Return Value:
- Array
Examples
- Example 1:
- velocityModelSpace _chopper; comment "Returns [X (left(-) right(+)), Y (backward(-) forward(+)), Z (down(-) up(+))]";
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
- Posted on 2014-12-11 - 02:55 (UTC)
- Pierre MGI
- This function is useful for helicopters as it returns Z vector like an indicator of thrust/load ratio. More or less climb (+) or descent (-) tendency but: As X,Y,Z vectors are relative to vehicle attitude, this function doesn't return a climb or descend rate (as the attitude of the vehicle can be far from horizontal). You can get negative Z vector, in jets, while climbing fast, peeling off in the sky! More or less, you can use as a Z accelerometer factor but invert the sign: +G acceleration (negative vector below the jet) is -Z here. If not "physically" correct, the behavior is sufficient enough for Arma flight model.
- Posted on 2015-06-21 - 02:36 (UTC)
- K.J.
- Previous note is physically incorrect. Velocity can not be used to give information about Thrust/Load ratio or G-Forces/acceleration. To get acceleration you have to create the derivative of velocity after time dv/dt -> the difference of velocity between 2 timesteps divided by the time that passed between the 2 steps.