void reaimPointer() { var pos = Camera.LookAt + new CPos(0, -2048, 0) - targetedEnemy.GraphicPosition; pointer.Visible = pos.SquaredFlatDist > 8192 * 8192; if (!pointer.Visible) { return; } var angle = pos.FlatAngle; pointer.SetRotation(new VAngle(0, 0, -angle) + new VAngle(0, 0, 270)); pointer.SetPosition(CPos.FromFlatAngle(angle, 2048) - new CPos(0, 2048, 0)); }
public void SetRotation(VAngle rotation) { charRenderable.SetRotation(rotation); }