mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
fix parabola xform
This commit is contained in:
parent
032098b9aa
commit
843790e041
@ -20,9 +20,10 @@
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
void FLOATNAME(Parabola)::
|
void FLOATNAME(Parabola)::
|
||||||
xform(const FLOATNAME(LMatrix4) &mat) {
|
xform(const FLOATNAME(LMatrix4) &mat) {
|
||||||
// I'm not really sure if this is the right thing to do here.
|
// Note that xform_vec() is the correct operation here, while
|
||||||
_a = mat.xform_vec_general(_a);
|
// xform_vec_general() is not.
|
||||||
_b = mat.xform_vec_general(_b);
|
_a = mat.xform_vec(_a);
|
||||||
|
_b = mat.xform_vec(_b);
|
||||||
_c = mat.xform_point(_c);
|
_c = mat.xform_point(_c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user