Skip to content

Commit 86ef882

Browse files
author
L'In20Cible
committed
Exported AngleVectors as QAngle.get_angle_vectors.
1 parent 8b0290b commit 86ef882

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎src/core/modules/mathlib/mathlib_wrap.cpp‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,12 @@ void export_qangle(scope _mathlib)
315315
"Invalidates the angle."
316316
)
317317

318+
.def("get_angle_vectors",
319+
GET_FUNCTION(void, AngleVectors, const QAngle &, Vector *, Vector *, Vector *),
320+
"Euler QAngle -> Basis Vectors. Each vector is optional",
321+
(arg("forward")=NULL, arg("right")=NULL, arg("up")=NULL)
322+
)
323+
318324
.def("__getitem__",
319325
&GetItemIndexer<QAngle, float, 0, 2>,
320326
"Returns the value at the given index."

0 commit comments

Comments
 (0)