This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
functions:vectortoangles [2017/03/17 18:09] – created korshun | functions:vectortoangles [2019/04/20 23:55] – removed korshun | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== VectorToAngles ====== | ||
- | {{tag> | ||
- | '' | ||
- | [[: | ||
- | |||
- | [[: | ||
- | |||
- | ===== Description ===== | ||
- | Converts a 3D vector to a pair of angles (yaw and pitch). | ||
- | |||
- | ===== Examples ===== | ||
- | Make the player look along the vector: | ||
- | < | ||
- | VectorToAngles(1.0, | ||
- | int angle = r1; | ||
- | int pitch = r2; | ||
- | SetActorAngle(tid, | ||
- | SetActorPitch(tid, | ||
- | </ | ||
- | |||
- | <note tip>Use '' |