≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Point light cast no shadow?
Posted by:
(you are not logged in)
Enter the missing letter in: "Intern?tional"
(you are not logged in)
Text:
[quote][b][/b] wrote: Ok To print something in to the debug window I can use the print() command, but with the direction of the light I don't really understand what is happening. According to print(direction.x), the light is rotating on the x axis from -0.2 up to 1.01 and then stop. I tried to work around with this code: [code] var sun = ccbGetSceneNodeFromName("sun"); var direction = ccbGetSceneNodeProperty(sun, "Direction"); if(direction.x <= 1.0){direction.x += 0.01} ccbSetSceneNodeProperty(sun, "Direction", direction.x, direction.y, direction.z); if(direction.x >1.0){ direction.x = -0.2} print(direction.x); [/code] But the only thing happening the light rotate from -0.2 up to 1.0 and than change to -0.2 and stop. I can't figure out why is the light stop rotating :( So I'm not too sure what is happening here. I would appreciate any help. Thanks.[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact