private ["_vehicle","_speed","_dir","_vel"];
_vehicle = _this;
_speed = 500;
while {true} do {
_vel = velocity _vehicle;
_dir = direction _vehicle;
_vehicle setVelocity [(_vel select 0)+(sin _dir*_speed),(_vel select 1)+ (cos _dir*_speed),(_vel select 2)];
sleep 0.25;
};
The car booms off in the right direction the first time, looks great, then all of a sudden he's teleporting ahead each time, not rolling...
Ie:
AI / Human inside it
-------------------------> ---> --> -> > > > > > > > > > > >
No one
----> ---> --> -> > > > > > > > > > > >
Looks really weird, and nothing like I thought it would? Any ideas guys.
Romm
EDIT:
Tested with:
private ["_vehicle","_speed","_dir","_vel"];
_vehicle = _this;
while {true} do {
_vehicle setVelocity [100,100,0];
sleep 0.25;
};
Aswell, same results.