mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 12:26:59 +01:00
Bind everything in Vector3.
This commit is contained in:
parent
e4aebe1783
commit
feb5c025cf
@ -540,30 +540,40 @@ struct _VariantCall {
|
|||||||
VCALL_LOCALMEM1(Rect2i, set_end);
|
VCALL_LOCALMEM1(Rect2i, set_end);
|
||||||
VCALL_LOCALMEM0R(Rect2i, get_end);
|
VCALL_LOCALMEM0R(Rect2i, get_end);
|
||||||
|
|
||||||
|
VCALL_LOCALMEM2(Vector3, set_axis);
|
||||||
|
VCALL_LOCALMEM1R(Vector3, get_axis);
|
||||||
|
VCALL_LOCALMEM1(Vector3, set_all);
|
||||||
VCALL_LOCALMEM0R(Vector3, min_axis);
|
VCALL_LOCALMEM0R(Vector3, min_axis);
|
||||||
VCALL_LOCALMEM0R(Vector3, max_axis);
|
VCALL_LOCALMEM0R(Vector3, max_axis);
|
||||||
VCALL_LOCALMEM1R(Vector3, distance_to);
|
|
||||||
VCALL_LOCALMEM1R(Vector3, distance_squared_to);
|
|
||||||
VCALL_LOCALMEM0R(Vector3, length);
|
VCALL_LOCALMEM0R(Vector3, length);
|
||||||
VCALL_LOCALMEM0R(Vector3, length_squared);
|
VCALL_LOCALMEM0R(Vector3, length_squared);
|
||||||
|
VCALL_LOCALMEM0(Vector3, normalize);
|
||||||
VCALL_LOCALMEM0R(Vector3, normalized);
|
VCALL_LOCALMEM0R(Vector3, normalized);
|
||||||
VCALL_LOCALMEM0R(Vector3, is_normalized);
|
VCALL_LOCALMEM0R(Vector3, is_normalized);
|
||||||
VCALL_LOCALMEM1R(Vector3, is_equal_approx);
|
|
||||||
VCALL_LOCALMEM0R(Vector3, inverse);
|
VCALL_LOCALMEM0R(Vector3, inverse);
|
||||||
|
VCALL_LOCALMEM1R(Vector3, limit_length);
|
||||||
|
VCALL_LOCALMEM0(Vector3, zero);
|
||||||
|
VCALL_LOCALMEM1(Vector3, snap);
|
||||||
VCALL_LOCALMEM1R(Vector3, snapped);
|
VCALL_LOCALMEM1R(Vector3, snapped);
|
||||||
|
VCALL_LOCALMEM2(Vector3, rotate);
|
||||||
VCALL_LOCALMEM2R(Vector3, rotated);
|
VCALL_LOCALMEM2R(Vector3, rotated);
|
||||||
VCALL_LOCALMEM2R(Vector3, linear_interpolate);
|
VCALL_LOCALMEM2R(Vector3, linear_interpolate);
|
||||||
VCALL_LOCALMEM2R(Vector3, slerp);
|
VCALL_LOCALMEM2R(Vector3, slerp);
|
||||||
VCALL_LOCALMEM4R(Vector3, cubic_interpolate);
|
VCALL_LOCALMEM4R(Vector3, cubic_interpolate);
|
||||||
|
VCALL_LOCALMEM4R(Vector3, bezier_interpolate);
|
||||||
VCALL_LOCALMEM2R(Vector3, move_toward);
|
VCALL_LOCALMEM2R(Vector3, move_toward);
|
||||||
VCALL_LOCALMEM1R(Vector3, dot);
|
|
||||||
VCALL_LOCALMEM1R(Vector3, cross);
|
VCALL_LOCALMEM1R(Vector3, cross);
|
||||||
|
VCALL_LOCALMEM1R(Vector3, dot);
|
||||||
VCALL_LOCALMEM1R(Vector3, outer);
|
VCALL_LOCALMEM1R(Vector3, outer);
|
||||||
VCALL_LOCALMEM0R(Vector3, to_diagonal_matrix);
|
VCALL_LOCALMEM0R(Vector3, to_diagonal_matrix);
|
||||||
VCALL_LOCALMEM0R(Vector3, abs);
|
VCALL_LOCALMEM0R(Vector3, abs);
|
||||||
VCALL_LOCALMEM0R(Vector3, floor);
|
VCALL_LOCALMEM0R(Vector3, floor);
|
||||||
|
VCALL_LOCALMEM0R(Vector3, sign);
|
||||||
VCALL_LOCALMEM0R(Vector3, ceil);
|
VCALL_LOCALMEM0R(Vector3, ceil);
|
||||||
VCALL_LOCALMEM0R(Vector3, round);
|
VCALL_LOCALMEM0R(Vector3, round);
|
||||||
|
VCALL_LOCALMEM2R(Vector3, clamp);
|
||||||
|
VCALL_LOCALMEM1R(Vector3, distance_to);
|
||||||
|
VCALL_LOCALMEM1R(Vector3, distance_squared_to);
|
||||||
VCALL_LOCALMEM1R(Vector3, posmod);
|
VCALL_LOCALMEM1R(Vector3, posmod);
|
||||||
VCALL_LOCALMEM1R(Vector3, posmodv);
|
VCALL_LOCALMEM1R(Vector3, posmodv);
|
||||||
VCALL_LOCALMEM1R(Vector3, project);
|
VCALL_LOCALMEM1R(Vector3, project);
|
||||||
@ -573,8 +583,8 @@ struct _VariantCall {
|
|||||||
VCALL_LOCALMEM1R(Vector3, slide);
|
VCALL_LOCALMEM1R(Vector3, slide);
|
||||||
VCALL_LOCALMEM1R(Vector3, bounce);
|
VCALL_LOCALMEM1R(Vector3, bounce);
|
||||||
VCALL_LOCALMEM1R(Vector3, reflect);
|
VCALL_LOCALMEM1R(Vector3, reflect);
|
||||||
VCALL_LOCALMEM1R(Vector3, limit_length);
|
VCALL_LOCALMEM1R(Vector3, is_equal_approx);
|
||||||
VCALL_LOCALMEM0R(Vector3, sign);
|
VCALL_LOCALMEM2R(Vector3, is_equal_approxt);
|
||||||
|
|
||||||
VCALL_LOCALMEM0R(Vector3i, min_axis);
|
VCALL_LOCALMEM0R(Vector3i, min_axis);
|
||||||
VCALL_LOCALMEM0R(Vector3i, max_axis);
|
VCALL_LOCALMEM0R(Vector3i, max_axis);
|
||||||
@ -2366,41 +2376,51 @@ void register_variant_methods() {
|
|||||||
ADDFUNC1(RECT2I, NIL, Rect2i, set_end, VECTOR2I, "end", varray());
|
ADDFUNC1(RECT2I, NIL, Rect2i, set_end, VECTOR2I, "end", varray());
|
||||||
ADDFUNC0R(RECT2I, VECTOR2I, Rect2i, get_end, varray());
|
ADDFUNC0R(RECT2I, VECTOR2I, Rect2i, get_end, varray());
|
||||||
|
|
||||||
|
ADDFUNC2(VECTOR3, NIL, Vector3, set_axis, INT, "axis", REAL, "value", varray());
|
||||||
|
ADDFUNC1R(VECTOR3, INT, Vector3, get_axis, INT, "axis", varray());
|
||||||
|
ADDFUNC1(VECTOR3, NIL, Vector3, set_all, REAL, "value", varray());
|
||||||
ADDFUNC0R(VECTOR3, INT, Vector3, min_axis, varray());
|
ADDFUNC0R(VECTOR3, INT, Vector3, min_axis, varray());
|
||||||
ADDFUNC0R(VECTOR3, INT, Vector3, max_axis, varray());
|
ADDFUNC0R(VECTOR3, INT, Vector3, max_axis, varray());
|
||||||
ADDFUNC1R(VECTOR3, REAL, Vector3, angle_to, VECTOR3, "to", varray());
|
|
||||||
ADDFUNC2R(VECTOR3, REAL, Vector3, signed_angle_to, VECTOR3, "to", VECTOR3, "axis", varray());
|
|
||||||
ADDFUNC1R(VECTOR3, VECTOR3, Vector3, direction_to, VECTOR3, "b", varray());
|
|
||||||
ADDFUNC1R(VECTOR3, REAL, Vector3, distance_to, VECTOR3, "b", varray());
|
|
||||||
ADDFUNC1R(VECTOR3, REAL, Vector3, distance_squared_to, VECTOR3, "b", varray());
|
|
||||||
ADDFUNC0R(VECTOR3, REAL, Vector3, length, varray());
|
ADDFUNC0R(VECTOR3, REAL, Vector3, length, varray());
|
||||||
ADDFUNC0R(VECTOR3, REAL, Vector3, length_squared, varray());
|
ADDFUNC0R(VECTOR3, REAL, Vector3, length_squared, varray());
|
||||||
|
ADDFUNC0(VECTOR3, NIL, Vector3, normalize, varray());
|
||||||
ADDFUNC0R(VECTOR3, VECTOR3, Vector3, normalized, varray());
|
ADDFUNC0R(VECTOR3, VECTOR3, Vector3, normalized, varray());
|
||||||
ADDFUNC0R(VECTOR3, BOOL, Vector3, is_normalized, varray());
|
ADDFUNC0R(VECTOR3, BOOL, Vector3, is_normalized, varray());
|
||||||
ADDFUNC1R(VECTOR3, BOOL, Vector3, is_equal_approx, VECTOR3, "v", varray());
|
|
||||||
ADDFUNC0R(VECTOR3, VECTOR3, Vector3, inverse, varray());
|
ADDFUNC0R(VECTOR3, VECTOR3, Vector3, inverse, varray());
|
||||||
|
ADDFUNC1R(VECTOR3, VECTOR3, Vector3, limit_length, REAL, "length", varray(1.0));
|
||||||
|
ADDFUNC0(VECTOR3, NIL, Vector3, zero, varray());
|
||||||
|
ADDFUNC1(VECTOR3, NIL, Vector3, snap, VECTOR3, "val", varray());
|
||||||
ADDFUNC1R(VECTOR3, VECTOR3, Vector3, snapped, VECTOR3, "by", varray());
|
ADDFUNC1R(VECTOR3, VECTOR3, Vector3, snapped, VECTOR3, "by", varray());
|
||||||
|
ADDFUNC2(VECTOR3, NIL, Vector3, rotate, INT, "axis", REAL, "phi", varray());
|
||||||
ADDFUNC2R(VECTOR3, VECTOR3, Vector3, rotated, VECTOR3, "axis", REAL, "phi", varray());
|
ADDFUNC2R(VECTOR3, VECTOR3, Vector3, rotated, VECTOR3, "axis", REAL, "phi", varray());
|
||||||
ADDFUNC2R(VECTOR3, VECTOR3, Vector3, linear_interpolate, VECTOR3, "to", REAL, "weight", varray());
|
ADDFUNC2R(VECTOR3, VECTOR3, Vector3, linear_interpolate, VECTOR3, "to", REAL, "weight", varray());
|
||||||
ADDFUNC2R(VECTOR3, VECTOR3, Vector3, slerp, VECTOR3, "to", REAL, "weight", varray());
|
ADDFUNC2R(VECTOR3, VECTOR3, Vector3, slerp, VECTOR3, "to", REAL, "weight", varray());
|
||||||
ADDFUNC4R(VECTOR3, VECTOR3, Vector3, cubic_interpolate, VECTOR3, "b", VECTOR3, "pre_a", VECTOR3, "post_b", REAL, "weight", varray());
|
ADDFUNC4R(VECTOR3, VECTOR3, Vector3, cubic_interpolate, VECTOR3, "b", VECTOR3, "pre_a", VECTOR3, "post_b", REAL, "weight", varray());
|
||||||
|
ADDFUNC4R(VECTOR3, VECTOR3, Vector3, bezier_interpolate, VECTOR3, "b", VECTOR3, "pre_a", VECTOR3, "post_b", REAL, "weight", varray());
|
||||||
ADDFUNC2R(VECTOR3, VECTOR3, Vector3, move_toward, VECTOR3, "to", REAL, "delta", varray());
|
ADDFUNC2R(VECTOR3, VECTOR3, Vector3, move_toward, VECTOR3, "to", REAL, "delta", varray());
|
||||||
ADDFUNC1R(VECTOR3, REAL, Vector3, dot, VECTOR3, "b", varray());
|
|
||||||
ADDFUNC1R(VECTOR3, VECTOR3, Vector3, cross, VECTOR3, "b", varray());
|
ADDFUNC1R(VECTOR3, VECTOR3, Vector3, cross, VECTOR3, "b", varray());
|
||||||
|
ADDFUNC1R(VECTOR3, REAL, Vector3, dot, VECTOR3, "b", varray());
|
||||||
ADDFUNC1R(VECTOR3, BASIS, Vector3, outer, VECTOR3, "b", varray());
|
ADDFUNC1R(VECTOR3, BASIS, Vector3, outer, VECTOR3, "b", varray());
|
||||||
ADDFUNC0R(VECTOR3, BASIS, Vector3, to_diagonal_matrix, varray());
|
ADDFUNC0R(VECTOR3, BASIS, Vector3, to_diagonal_matrix, varray());
|
||||||
ADDFUNC0R(VECTOR3, VECTOR3, Vector3, abs, varray());
|
ADDFUNC0R(VECTOR3, VECTOR3, Vector3, abs, varray());
|
||||||
ADDFUNC0R(VECTOR3, VECTOR3, Vector3, floor, varray());
|
ADDFUNC0R(VECTOR3, VECTOR3, Vector3, floor, varray());
|
||||||
|
ADDFUNC0R(VECTOR3, VECTOR3, Vector3, sign, varray());
|
||||||
ADDFUNC0R(VECTOR3, VECTOR3, Vector3, ceil, varray());
|
ADDFUNC0R(VECTOR3, VECTOR3, Vector3, ceil, varray());
|
||||||
ADDFUNC0R(VECTOR3, VECTOR3, Vector3, round, varray());
|
ADDFUNC0R(VECTOR3, VECTOR3, Vector3, round, varray());
|
||||||
|
ADDFUNC2R(VECTOR3, VECTOR3, Vector3, clamp, VECTOR3, "min", VECTOR3, "max", varray());
|
||||||
|
ADDFUNC1R(VECTOR3, REAL, Vector3, distance_to, VECTOR3, "b", varray());
|
||||||
|
ADDFUNC1R(VECTOR3, REAL, Vector3, distance_squared_to, VECTOR3, "b", varray());
|
||||||
ADDFUNC1R(VECTOR3, VECTOR3, Vector3, posmod, REAL, "mod", varray());
|
ADDFUNC1R(VECTOR3, VECTOR3, Vector3, posmod, REAL, "mod", varray());
|
||||||
ADDFUNC1R(VECTOR3, VECTOR3, Vector3, posmodv, VECTOR3, "modv", varray());
|
ADDFUNC1R(VECTOR3, VECTOR3, Vector3, posmodv, VECTOR3, "modv", varray());
|
||||||
ADDFUNC1R(VECTOR3, VECTOR3, Vector3, project, VECTOR3, "b", varray());
|
ADDFUNC1R(VECTOR3, VECTOR3, Vector3, project, VECTOR3, "b", varray());
|
||||||
|
ADDFUNC1R(VECTOR3, REAL, Vector3, angle_to, VECTOR3, "to", varray());
|
||||||
|
ADDFUNC2R(VECTOR3, REAL, Vector3, signed_angle_to, VECTOR3, "to", VECTOR3, "axis", varray());
|
||||||
|
ADDFUNC1R(VECTOR3, VECTOR3, Vector3, direction_to, VECTOR3, "b", varray());
|
||||||
ADDFUNC1R(VECTOR3, VECTOR3, Vector3, slide, VECTOR3, "n", varray());
|
ADDFUNC1R(VECTOR3, VECTOR3, Vector3, slide, VECTOR3, "n", varray());
|
||||||
ADDFUNC1R(VECTOR3, VECTOR3, Vector3, bounce, VECTOR3, "n", varray());
|
ADDFUNC1R(VECTOR3, VECTOR3, Vector3, bounce, VECTOR3, "n", varray());
|
||||||
ADDFUNC1R(VECTOR3, VECTOR3, Vector3, reflect, VECTOR3, "n", varray());
|
ADDFUNC1R(VECTOR3, VECTOR3, Vector3, reflect, VECTOR3, "n", varray());
|
||||||
ADDFUNC1R(VECTOR3, VECTOR3, Vector3, limit_length, REAL, "length", varray(1.0));
|
ADDFUNC1R(VECTOR3, BOOL, Vector3, is_equal_approx, VECTOR3, "v", varray());
|
||||||
ADDFUNC0R(VECTOR3, VECTOR3, Vector3, sign, varray());
|
ADDFUNC2R(VECTOR3, BOOL, Vector3, is_equal_approxt, VECTOR3, "v", REAL, "tolerance", varray());
|
||||||
|
|
||||||
ADDFUNC0R(VECTOR3I, INT, Vector3i, min_axis, varray());
|
ADDFUNC0R(VECTOR3I, INT, Vector3i, min_axis, varray());
|
||||||
ADDFUNC0R(VECTOR3I, INT, Vector3i, max_axis, varray());
|
ADDFUNC0R(VECTOR3I, INT, Vector3i, max_axis, varray());
|
||||||
|
Loading…
Reference in New Issue
Block a user