Search the Community
Showing results for tags 'help needed'.
-
Leadwerks giving me 'openAL not installed' error at startup and then ending. Leadwerks was working fine till I installed the beta (4.4) but since then a full uninstall and reinstall not only of the production version but the latest beta (4.6) has made no difference. I started wondering if other software installs had messed something up, or windows update or a over active anti malware app. I have no sound issues with other software. The steam file checker reports no problems. I am happy to check or provide samples of anything on the pc to resolve this - After it happened I had to use Unity for a project and it was a hell of a grind - any help gratefully received :-) Thank-you
-
Hi all since a week i am stuck with my code not working as expected, i need a fresh look at what i am doing wrong.I am surely doing something wrong but i can't get it.Hope someone could help. Here the facts: i need to make a car to follow a path made by some given points. the car need to steer realisticaly (sorry for bad saying) so every loop, i put a pivot at car' place, then i point it to the given point to retrieve y angle then i divide the entitydistance from the car pivot to given point by this angle, and i steer my car by this result. example of my print log: (car rotation - pointrotation) = 12.03.. mydistance = 43.17.. so my sterrangle = -3.58.... for this first point all run fine the car slowly move (with a given torque) to the given point smoothly but there i change the pivot to point the new given point and got: (car rotation - new pointrotation) = -20.54.. new distance = 54.01 steerangle = 2.62 not so bad but the car don't react as wished, it run away nearly straight and don't point ever where i wanted. I tried a lot different thigs with no luck. here a part of my code which doing this. Hope someone here point my bad maths and that i can move on.... thanks for reading local pivps = CreatePivot() PositionEntity(pivps,Vec3(pscx[bornai],1.0,pscz[bornai])) local hypdist = EntityDistance(chassai[1],pivps) local pivcarai = CreatePivot() PositionEntity(pivcarai,EntityPosition(chassai[1])) PointEntity(pivcarai,pivps,2,1.0) local Angrot = (EntityRotation(pivps).y - EntityRotation(pivcarai).y ) if bornai < 3 then steerangleai[1] = -(hypdist/Angrot) steerangleai[1]=Clamp(steerangleai[1],-steerlimit,steerlimit) carai[1]:SetSteerAngle(steerangleai[1],0) carai[1]:SetSteerAngle(steerangleai[1],1) end