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

Lights should be transformable, as meshes are #72

Open
modeswitch opened this issue May 16, 2012 · 1 comment
Open

Lights should be transformable, as meshes are #72

modeswitch opened this issue May 16, 2012 · 1 comment
Assignees
Milestone

Comments

@modeswitch
Copy link

Currently lights must be positioned in absolute coordinates. Would be more convenient to use if I they were transformable by scene object.

@cjcliffe
Copy link
Owner

I had forgotten that I added this:

https://github.com/cjcliffe/CubicVR.js/blob/master/source/CubicVR.Light.js#L136

If you call myLight.setParent(mySceneObject); it will attach the light appropriately, including the directional component of spotlights.

I will leave this open as I'd like to make sure it can be bound in a forward manner to the SceneObject using a quick instanceof check on bindChild as usual.

@ghost ghost assigned cjcliffe Aug 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants