mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
fix mistake in tangent computation
This commit is contained in:
parent
5892019088
commit
e5272c9e3d
@ -100,7 +100,7 @@ eval_segment_point(int segment, float t, LVecBase3f &point) const {
|
||||
void NurbsCurveResult::
|
||||
eval_segment_tangent(int segment, float t, LVecBase3f &tangent) const {
|
||||
float t2 = t*t;
|
||||
LVecBase4f tvec(t2, t, 1.0f, 0.0f);
|
||||
LVecBase4f tvec(3.0 * t2, 2.0 * t, 1.0f, 0.0f);
|
||||
|
||||
tangent.set(tvec.dot(_composed[segment].get_col(0)),
|
||||
tvec.dot(_composed[segment].get_col(1)),
|
||||
|
Loading…
x
Reference in New Issue
Block a user