Simplify up-offset computation.
This commit is contained in:
parent
6c02849df3
commit
f0ea8a1a38
@ -2453,7 +2453,7 @@ bool Track::findGround(AbstractKart *kart)
|
||||
// - so I'll leave it in for now.
|
||||
float offset = kart->getKartProperties()->getSuspensionRest() +
|
||||
kart->getKartProperties()->getWheelRadius();
|
||||
t.setOrigin(hit_point+ (btVector3(0, offset, 0).rotate(q.getAxis(),q.getAngle()) ) );
|
||||
t.setOrigin(hit_point+ quadNormal * offset);
|
||||
kart->getBody()->setCenterOfMassTransform(t);
|
||||
kart->setTrans(t);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user