Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Pages: 1 [2]

Author Topic: The black magic behind "modules on modules"  (Read 9593 times)

Sinosauropteryx

  • Captain
  • ****
  • Posts: 262
    • View Profile
Re: The black magic behind "modules on modules"
« Reply #15 on: June 22, 2020, 06:03:53 PM »

No problem, glad I could help make it happen :)
Logged

Sinosauropteryx

  • Captain
  • ****
  • Posts: 262
    • View Profile
Re: The black magic behind "modules on modules"
« Reply #16 on: March 27, 2021, 10:37:01 PM »

Quick update, if anyone is using this code (looking at you, Ed), it was broken by the 0.95a patch - here's a solution.

In your hullmod, find the line in the big for loop that reads
Code
float angle = normalizeAngle(seg[f].ship.getFacing() - seg[f].ship.getParentStation().getFacing());

and replace with this line
Code
float angle = seg[f].ship.getStationSlot().getAngle() - (ship.getAngularVelocity() * amount);
Logged
Pages: 1 [2]