Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
1. How to use the code to move the camera's position point and target point? 2. How to change the focal length of the camera, why the FOV setting of the first person camera according to the following code has no effect? var s = ccbGetSceneNodeFromName(“ Camera1â€ï¼‰; var fov = ccbGetSceneNodeProperty(s,“ FieldOfView_Degreesâ€ï¼‰; ccbSetSceneNodeProperty(s,“ FieldOfView_Degreesâ€ï¼Œfov + 0.3); 3. General FOV size how much appropriate, how to set,thanks for help? |
||||
|
syntax looks wrong - don't use spaces: var s = ccbGetSceneNodeFromName(“Camera1â€); var fov = ccbGetSceneNodeProperty(s,“FieldOfView_Degreesâ€); ccbSetSceneNodeProperty(s,“FieldOfView_Degreesâ€,fov + 0.3); |
|