PDA

View Full Version : model angles relative to ground



RobsoN
28th October 2013, 12:29
Hi, as in title, I want to give model angles relactive to ground. How to do that?
527

Tried with that code, but angles is same all time:

while(true)
{
vector = AnglesToForward( self.angles );
vector = maps\mp\_utility::vectorScale(vector, 54);
vector = self.origin + vector;
trace = bullettrace(vector + (0,0,100) ,vector + (0,0,-100000000), false, model);

model.origin = trace["position"];
model.angles = vectortoangles(trace["normal"]);

wait .1;
}

Regards,
RobsoN

randall
28th October 2013, 12:44
http://killtube.org/showthread.php?1597-Rotation-issue