This method aligns an axis of the entity to point to another entity or a point in global space.
Parameter | Description |
---|---|
entity | entity to point to |
position, (x, y, z) | position in space to point to |
axis | axis to align (0, 1, or 2) |
rate | can be used to gradually align the entity |
roll | rotation around the axis |