component.constantforce 恒力

2015-1-5 03:57| 发布者: 杨炎| 查看: 1394| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本manual

摘要: component.constantforce 恒力varconstantforce:constantforcedescription描述theconstantforceattached to thisgameobject(null if there is none attached).constantforce附加到gameobject(游戏物体)(如无附加 ...

component.constantforce 恒力

varconstantforce:constantforce

description描述

theconstantforceattached to thisgameobject(null if there is none attached).

constantforce附加到gameobject(游戏物体)(如无附加则为空)。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

constantforce.relativeforce = newvector3(0, 0, 1);

}

}

constantforce.relativeforce =vector3(0, 0, 1);

相关阅读

文章点评
相关文章