setVectorDirAndUp: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(mass edit: removing obsolete </dt> and </dd> tags)
Line 29: Line 29:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on March 16, 2008 - 09:50</dd>
<dd class="notedate">Posted on March 16, 2008 - 09:50
<dt class="note">'''[[User:Str|Str]]'''</dt><dd class="note">Command can be also used to rotate camera in all three axis (which also mean it's possible to set camera bank).</dd>
<dt class="note">'''[[User:Str|Str]]'''<dd class="note">Command can be also used to rotate camera in all three axis (which also mean it's possible to set camera bank).


<dd class="notedate">Posted on May 9, 2008 - 09:32</dd>
<dd class="notedate">Posted on May 9, 2008 - 09:32
<dt class="note">'''[[User:General Barron|General Barron]]'''</dt><dd class="note">The object's vectorDir can only control its pitch, while its vectorUp can only control its bank. To set an object's yaw (direction), use the setdir command, before using this command.
<dt class="note">'''[[User:General Barron|General Barron]]'''<dd class="note">The object's vectorDir can only control its pitch, while its vectorUp can only control its bank. To set an object's yaw (direction), use the setdir command, before using this command.




Line 42: Line 42:




A function to set an object's pitch / bank can be found [http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=e219d8da3fd34cabd2501a118a297257;act=ST;f=71;t=73312 here]</dd>
A function to set an object's pitch / bank can be found [http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=e219d8da3fd34cabd2501a118a297257;act=ST;f=71;t=73312 here]


<dd class="notedate">Posted on October 23rd, 2009 - 18:39</dd>
<dd class="notedate">Posted on October 23rd, 2009 - 18:39
<dt class="note">'''[[User:Chris330|Chris330]]'''</dt><dd class="note">
<dt class="note">'''[[User:Chris330|Chris330]]'''<dd class="note">


Note this odd command may now be better understood. There's a thread about it here:
Note this odd command may now be better understood. There's a thread about it here:


[http://forums.bistudio.com/showthread.php?p=1470985#post1470985 BI Studios Forum Thread]</dd>
[http://forums.bistudio.com/showthread.php?p=1470985#post1470985 BI Studios Forum Thread]


<!-- Note Section END -->
<!-- Note Section END -->

Revision as of 03:58, 18 October 2011

-wrong parameter ("Arma") defined!-1.09
Hover & click on the images for description

Description

Description:
Set object's orientation (given as direction and up vector).
Groups:
Uncategorised

Syntax

Syntax:
vehicle setVectorDirAndUp [[x, z, y],[x, z, y]]
Parameters:
vehicle: Object
[[x, z, y],[x, z, y]]: Array
Return Value:
Nothing

Examples

Examples:
Example needed

Additional Information

See also:
vectorUpsetVectorUpvectorDirsetVectorDir

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

Notes

Posted on March 16, 2008 - 09:50
Str
Command can be also used to rotate camera in all three axis (which also mean it's possible to set camera bank).
Posted on May 9, 2008 - 09:32
General Barron
The object's vectorDir can only control its pitch, while its vectorUp can only control its bank. To set an object's yaw (direction), use the setdir command, before using this command. You would think vectorUp would control pitch as well, but any pitch that would be set due to vectorUp is ignored. The same is true with vectorDir and yaw; any vectorDir that would adjust yaw is also ignored. If this doesn't make sense, try to visualize it with a box or soda can. This command does NOT work with values relative to a unit, but rather it works with world vectors (think world coordinates as opposed to model coordinates). As a result, this command can be difficult to use in many situations, because the input values needed to get a certain pitch / bank for an object vary, depending on what direction the object is facing (yaw). A function to set an object's pitch / bank can be found here
Posted on October 23rd, 2009 - 18:39
Chris330
Note this odd command may now be better understood. There's a thread about it here: BI Studios Forum Thread

Bottom Section