Jump to content

Solar Panel Orientation

Recommended Posts

Hi, I'm new to modding and decided to make a test solar panel to see how sun tracking works, but it doesn't rotate correctly. I've gone through the forum and found out that:

1. " raycastTransformName doesn't aim the panel, the object you specify as the rotator does. "

2. " The object set as solarPivot will rotate along its local Y axis and make its local Z+ axis face the sun. "

I get the idea, but whatever I do, the edges of the panel face the sun and rotate incorrectly. I've been at it for a few hours now and can't figure it out, I'd really appreciate it if anyone can help! 


Edited by Neverhood
Link to comment
Share on other sites

Hi, tip 1 extract stock panel and check the hierarchy, as the position in the hierarchy of all transforms ultimately determines what drives what.  Tip 2  In unity make sure you are using "local pivot" instead of "global center".  It's been a while since I've done a solar panel though and unusually for me i don't have a unity shot of the hierarchy.   Rather than a screen shot  a picture of the expanded unity hierarchy will better help diagnose whats wrong

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...