Anything speedometer(tachometer) with vehicle for value?

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
Machei
Posts: 8
Joined: Tue Nov 02, 2010 12:04 am

Anything speedometer(tachometer) with vehicle for value?

Post by Machei »

:arrow: subject. I couldnt find anything functions/methods for writing value about speed running a car. I had bad learned about matrix or vector ,but i can not make speedometer. So here in library BEPU.vehicle have installed method?
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Anything speedometer(tachometer) with vehicle for value?

Post by Norbo »

Each wheel's DrivingMotor has a GetRelativeVelocity method which returns the relative linear velocity between the wheel contact and the ground. You could use those, or just dot the car's linear velocity with the car's orientation matrix forward vector.
Post Reply