Fandom

武装突袭 Wiki

SetVectorUp

简体 | 繁體

4,827个页面创建
于此维基上
添加新页面
评论0 Share

您使用了广告屏蔽软件!


Wikia通过广告运营为用户提供免费的服务。我们对用户通过嵌入广告屏蔽软件访问网站进行了使用调整。

如果您使用了广告屏蔽软件,将无法使用我们的服务。请您移除广告屏蔽软件,以确保页面正常加载。

  Arguments of this scripting command have to be local to the client the command is executed onEffects of this scripting command are broadcasted over the network and happen on every computer in the network

点击图片可看到更多讯息

开始使用于

游戏:
Armed Assault
版本:
1.00

描述

描述:
Set object's up vector. Direction vector will remain unchanged. Default object's vectorUp is [0,0,1].

In Multiplayer, setVectorUp must be executed on the machine where the object it applied to is local.

基本句法

句法:
object setVectorUp [x, y, z]
参数:
object: Object

[x, y, z]: Array
返回值:
Nothing

范例

范例1:
Turn object upside down: _obj setVectorUp [0,0,-1];

范例2:
Align object with the terrain underneath: _obj setVectorUp surfaceNormal position _obj;

额外资讯

多人游戏:
-
也可以看看:

vectorDirvectorUpsetVectorDirsetVectorDirAndUpvectorDiffvectorAddvectorMultiplyvectorCrossProductvectorDistancevectorMagnitudeSqrvectorDistanceSqrvectorCosvectorMagnitudevectorDotProductvectorNormalizedvectorFromTo

注意事项

此处撰写句法皆为可行用法. 可到官网[1]专页回报错误. 你可以使用讨论页面或是论坛来进行讨论.
新增注意事项 | 如何新增?

Notes

setVectorUp can only influence an object's bank. It can not influence pitch. Example:

   player setVectorUp [0,1,0]
   If the player is facing 0 degrees (north), then this will do NOTHING.
   If the player is facing 90 degrees (east), then this will make him bank 90 degrees to his left.

--General Barron 21:07, 3 March 2009 (CET)

Posted on March 22, 2007 - 05:07
Kronzky
An in-depth discussion on the concept of vectors is available here.

Posted on March 16, 2008 - 09:49
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 October 3, 2013
Killzone_Kid
It is possible to change both pitch and bank of an object (surfaceNormal application for instance). Assuming an ammo box in the following example is facing North (default direction is 0):_ammobox setVectorUp [0,1,0]; //box is pitched 90 degrees forward _ammobox setVectorUp [1,0,0]; //box is banked 90 degrees to the right However the above will stop working as soon as you attach the box to something. The following trick however will work in this case: _ammobox attachTo [player, [0,2,1]]; _ammobox setVectorUp [0,0.99,0.01]; //box is pitched ~90 degrees forward _ammobox setVectorUp [0.99,0,0.01]; //box is banked ~90 degrees to the right


Bottom Section

更多维基

随机维基