Vector3
- Angle
- ClampMagnitude
- Cross
- Distance
- Dot
- forward
- Lerp
- magnitude
- Max
- Min
- MoveTowards
- normalized
- Normalize
- one
- operator !=
- operator *
- operator +
- operator -
- operator /
- operator ==
- OrthoNormalize
- Project
- Reflect
- right
- RotateTowards
- Scale
- Slerp
- SmoothDamp
- sqrMagnitude
- this [int index]
- ToString
- up
- Vector3
- x
- y
- zero
- z
Vector3.up 向上
static var up : Vector3
Description描述
Shorthand for writing Vector3(0, 1, 0)
写Vector3(0, 1, 0)的简码,也就是向y轴。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public void Awake() {
transform.position += Vector3.up * Time.deltaTime;
}
}
transform.position += Vector3.up * Time.deltaTime;
最后修改:2010年12月19日 Sunday 22:22