Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SolarPanel <Pivots> generated from empties #399

Open
THDigi opened this issue May 21, 2024 · 1 comment
Open

SolarPanel <Pivots> generated from empties #399

THDigi opened this issue May 21, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request export sbc

Comments

@THDigi
Copy link
Contributor

THDigi commented May 21, 2024

SE v204 added <Pivots> to solar panel definitions which allows modders to define where the rays come from and how many of them.

This suggestion is to generate that tag from model empties to be easier to visualize (especially as the new F11 solar panels draw isn't that useful).

Example of the tag, more in CubeBlocks_DecorativePack3.sbc.

<Pivots>
  <Vector3>
    <X>-0.5</X>
    <Y>0</Y>
    <Z>0</Z>
  </Vector3>
  <Vector3>
    <X>-0.5</X>
    <Y>0</Y>
    <Z>-0.5</Z>
  </Vector3>
  ... etc
</Pivots>

Units are in cell sizes (gets multiplied by grid size in meters on load) and floating point as you can see so it's not limited to the center of a cell.

@THDigi THDigi added the enhancement New feature or request label May 21, 2024
@enenra enenra self-assigned this May 21, 2024
@enenra enenra added this to the SEUT 1.2.1 milestone May 21, 2024
@THDigi
Copy link
Contributor Author

THDigi commented May 23, 2024

Z is flipped btw, positive values offset towards forward not backward 😒

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request export sbc
Projects
None yet
Development

No branches or pull requests

2 participants