Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

direction of craft spotlight?

edited November 2017 in Codea Craft Posts: 263
@John i don’t seem to be able change the direction of the SPOT type of light? According to the reference this should be controlled by the orientation of its associated Entity. By setting the Entity eulerAngles i can define the Entity orientation, but the spotlight is unaffected and is always pointing downwards. I wonder what i am doing wrong?

By the way, the Entity.scale parameter seems to also affect the spot light, is that intentional? does this mean the spotlight source has a physical extension?
Tagged:

Comments

  • JohnJohn Admin Mod
    Posts: 471

    @piinthesky This sounds odd I'll have to test it. By the looks of the code, the scale of the entity is an issue that needs to be taken into account.

  • @John did you get a chance to investigate the craft spotlight orientation issue? I am now at the stage in my project that i would like to implement this. Many thanks.

  • JohnJohn Admin Mod
    Posts: 471

    @piinthesky I've found and fixed both the scaling and rotation bugs. This fix will be in the next release of Codea.

  • thanks, looking forward to the next release!

  • Posts: 263

    @John still didn’t manage to orient a spotlight in the 3.0 beta. If you really think it is fixed could you post an example code.

  • JohnJohn Admin Mod
    Posts: 471

    Hi @piinthesky
    Sorry about that. It will be in the next build.

  • SimeonSimeon Admin Mod
    Posts: 4,506
    @piinthesky sorry it was my fault. I forgot to get john’s craft changes into the latest build
  • Posts: 263

    @Simeon ok thanks

Sign In or Register to comment.