aboutsummaryrefslogtreecommitdiff
path: root/src/Skeleton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Skeleton.cpp')
-rw-r--r--src/Skeleton.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Skeleton.cpp b/src/Skeleton.cpp
index b01e27d..b29ec53 100644
--- a/src/Skeleton.cpp
+++ b/src/Skeleton.cpp
@@ -83,13 +83,12 @@ void Skeleton::DoConstraints(Model *collide, XYZ *move, float rotation)
overpoint.y += 10;
XYZ underpoint = pos;
XYZ impact;
- int whichtri = collide->LineCheck2(overpoint, underpoint,
- &impact, *move, rotation);
+ int whichtri = segCrossModelTrans(overpoint, underpoint,
+ collide, *move, rotation, &impact);
if (whichtri == -1
|| collide->normals[whichtri].y <= 0.8)
- whichtri = collide->LineCheck2(
- joints[i].realoldposition, pos,
- &impact, *move, rotation);
+ whichtri = segCrossModelTrans(joints[i].realoldposition, pos,
+ collide, *move, rotation, &impact);
if (pos.y <= 0 || whichtri != -1) {
if (whichtri == -1