-
Notifications
You must be signed in to change notification settings - Fork 0
Advanced Objects
Gerd Christian Kunze edited this page Aug 22, 2013
·
3 revisions
This comes with a downside - It will be less powerful
This generally means that you can no longer interact as flexible to the individual objects as you would expect from three.js.
So if you have to tune a special parameter not handled by TJSApi-Object-Interface you're lost....
But wait! Rescue approaches!
Every TJSApi-Object got a special attribute named TJSObject
containing the original three.js object instance
Change the field of view for a camera
With TJSApi this would be:
Engine.Camera().FieldOfView( Value );
So imagine FieldOfView()
would be missing...
You are able to achieve the same by using TJSObject
and three.js syntax
Engine.Camera().TJSObject.fov = Value;
Amazing! Isn't it?