Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Mar 30, 2017 at 01:49 PM by Seyroth for the following reason:

Researched some more and identified the problem in a more comprehensible way here : http://answers.unity3d.com/questions/1333164/terrain-not-being-lit-on-the-x-axis.html

avatar image
0
Question by Seyroth · Apr 01, 2017 at 08:09 AM · lightinglightdynamicspotlight

Dynamic spotlight always facing one way and not its GameObject's

Hello,

I'm having one of the weirdest issues I've ever had with Unity (and that's saying something!). I'm making a night driving prototype where you drive a car with a single spotlight as headlights. The spotlight is one of the car chassis's children and is the simplest it can be:

alt text

In game, this spotlight is weirdly always facing right! (-x axis). If I pause the game, the spotlight is aligned with the car's direction, as it should be, but its light shines on the right. It follows the car alright, it's not stuck on the start point. But it's always facing -x.

It looks like this - it's a view from the car interior as it's facing -z while the spotlight shines on the right: alt text (sorry about the poor paint edit) Driving and turning the car moves the light but does not rotate it.

Does anyone have an idea why would this happen? I've tried rebaking lightmaps, adjusting various parameters on the spot, and trying other lights, and it looks like not a single one (directional excepted) can really cast light on the +x direction.

Thanks in advance

spotlight.png (24.3 kB)
spot2.png (329.0 kB)
Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image soniamarleau · Apr 23, 2019 at 07:02 PM 0
Share

Hello! Did you ever find the solution to this problem?

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Flickering circle of light around character 0 Answers

How can I change the SpotAngle's range in a SpotLight? 0 Answers

Poor spotlight gradient in Unity 1 Answer

Is it possible to create a torus-/ring-shaped light? If so, how? 2 Answers

Spotlights refuse to cast shadows. 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges