Esempio n. 1
0
 /** Generates a steering that dinamically aligns the orientation to face the target */
 public static Steering Face(Kinematic source, Steering sourceSteering, ILocation target, AlignOptions opts)
 {
     return(Dynamic.Align(source, sourceSteering, Kinematic.Vec2Orient(target.position - source.position), opts));
 }