I know it is a bit off topic but anyway to do a float script or use parameter dialog to control octane's mix material amount with actual car speed. If car stops/slows down mix amount go to 1. Car starts moving mix amount goes to 0. I appreciate any help.
Thank you!!!
P.S
They have this for path constraint with material ID change between 1(go) and 2(stop) but we cannot use it because we yuse city traffic to make cars stop and go
braking = .96
theCar = $MaroonSedan
PositionNext = at time (currentTime + 1) theCar.position.controller.percent
PositionCurrent = at time currentTime ( theCar.position.controller.percent )
PositionPrevious = at time (currentTime - 1) ( theCar.position.controller.percent )
travel = abs (PositionNext - PositionCurrent)
travelPrev = abs (PositionCurrent - PositionPrevious)
--ID = 1
if (travel <= 0.01) then (ID = 2 ) -- standing still
--else (
else if ((travel / travelPrev) < braking) then ( ID = 2 ) -- braking
else( ID = 1 ) -- coasting
--)
Thank you