add ONE constants to Vector2 and Vector3
This commit is contained in:
parent
a41cf404a9
commit
215db9ff71
3 changed files with 10 additions and 2 deletions
|
@ -1895,6 +1895,7 @@ void register_variant_methods() {
|
|||
_VariantCall::add_constant(Variant::VECTOR3, "AXIS_Z", Vector3::AXIS_Z);
|
||||
|
||||
_VariantCall::add_variant_constant(Variant::VECTOR3, "ZERO", Vector3(0, 0, 0));
|
||||
_VariantCall::add_variant_constant(Variant::VECTOR3, "ONE", Vector3(1, 1, 1));
|
||||
_VariantCall::add_variant_constant(Variant::VECTOR3, "INF", Vector3(Math_INF, Math_INF, Math_INF));
|
||||
_VariantCall::add_variant_constant(Variant::VECTOR3, "LEFT", Vector3(-1, 0, 0));
|
||||
_VariantCall::add_variant_constant(Variant::VECTOR3, "RIGHT", Vector3(1, 0, 0));
|
||||
|
@ -1904,6 +1905,7 @@ void register_variant_methods() {
|
|||
_VariantCall::add_variant_constant(Variant::VECTOR3, "BACK", Vector3(0, 0, 1));
|
||||
|
||||
_VariantCall::add_variant_constant(Variant::VECTOR2, "ZERO", Vector2(0, 0));
|
||||
_VariantCall::add_variant_constant(Variant::VECTOR2, "ONE", Vector2(1, 1));
|
||||
_VariantCall::add_variant_constant(Variant::VECTOR2, "INF", Vector2(Math_INF, Math_INF));
|
||||
_VariantCall::add_variant_constant(Variant::VECTOR2, "LEFT", Vector2(-1, 0));
|
||||
_VariantCall::add_variant_constant(Variant::VECTOR2, "RIGHT", Vector2(1, 0));
|
||||
|
|
|
@ -267,7 +267,10 @@
|
|||
</members>
|
||||
<constants>
|
||||
<constant name="ZERO" value="Vector2( 0, 0 )">
|
||||
Null vector.
|
||||
Zero vector.
|
||||
</constant>
|
||||
<constant name="ONE" value="Vector2( 1, 1 )">
|
||||
One vector.
|
||||
</constant>
|
||||
<constant name="INF" value="Vector2( inf, inf )">
|
||||
Infinite vector.
|
||||
|
|
|
@ -280,7 +280,10 @@
|
|||
Enumerated value for the Z axis.
|
||||
</constant>
|
||||
<constant name="ZERO" value="Vector3( 0, 0, 0 )">
|
||||
Null vector.
|
||||
Zero vector.
|
||||
</constant>
|
||||
<constant name="ONE" value="Vector3( 1, 1, 1 )">
|
||||
One vector.
|
||||
</constant>
|
||||
<constant name="INF" value="Vector3( inf, inf, inf )">
|
||||
Infinite vector.
|
||||
|
|
Loading…
Reference in a new issue