greetings,
i am trying to make a dp car follow a dark ai path.
here is my fail attempt
the car is object 2 and the path is 1
for test I was just trying to get it to go to the first way point.
a = AI Path Get Point X(1,2)
c = object position x(2) - a
if c <> 0 and object position x(2) <> a
PHY SET VEHICLE STEERING ANGLE 2,100/c
phy set vehicle steering value 2, ( 100/c * 45 )
endif
b = AI Path Get Point X(1,2)
if object position z(2) <> b
phy set vehicle motor force 2,300 : key = 1 : phy set vehicle wheel multiplier 2,50
endif
but it just drives around randomly it seems
what am i doing wrong?
thanks
E.S.