Vector3
UnityEngine.Vector3 · Official documentation
Scripts can use these 52 members of Vector3. Anything not listed here is a compile error when you build your world.
Properties and fields
| Name | Access |
|---|---|
back | read only |
down | read only |
forward | read only |
kEpsilon | read only |
kEpsilonNormalSqrt | read only |
left | read only |
magnitude | read only |
negativeInfinity | read only |
normalized | read only |
one | read only |
positiveInfinity | read only |
right | read only |
sqrMagnitude | read only |
this[int] | read only |
up | read only |
x | read only |
y | read only |
z | read only |
zero | read only |
Methods
| Method | Parameters |
|---|---|
Angle | (Vector3, Vector3) |
ClampMagnitude | (Vector3, float) |
Cross | (Vector3, Vector3) |
Distance | (Vector3, Vector3) |
Dot | (Vector3, Vector3) |
Equals | (object) |
Equals | (Vector3) |
GetHashCode | () |
Lerp | (Vector3, Vector3, float) |
LerpUnclamped | (Vector3, Vector3, float) |
Magnitude | (Vector3) |
Max | (Vector3, Vector3) |
Min | (Vector3, Vector3) |
MoveTowards | (Vector3, Vector3, float) |
Normalize | (Vector3) |
Project | (Vector3, Vector3) |
ProjectOnPlane | (Vector3, Vector3) |
Reflect | (Vector3, Vector3) |
RotateTowards | (Vector3, Vector3, float, float) |
Scale | (Vector3, Vector3) |
SignedAngle | (Vector3, Vector3, Vector3) |
Slerp | (Vector3, Vector3, float) |
SlerpUnclamped | (Vector3, Vector3, float) |
SqrMagnitude | (Vector3) |
ToString | () |
Operators
| Operator | Operands |
|---|---|
+ | (Vector3, Vector3) |
/ | (Vector3, float) |
== | (Vector3, Vector3) |
!= | (Vector3, Vector3) |
* | (float, Vector3) |
* | (Vector3, float) |
- | (Vector3, Vector3) |
- (unary) | (Vector3) |