≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
help me in this script
Posted by:
(you are not logged in)
Enter the missing letter in: "Internat?onal"
(you are not logged in)
Text:
[quote][b][/b] wrote: Windows controls: Press B to set fov to 70 (reset) Press N to zoom in Press M to zoom out Android controls: Press 2DTouchScreenInputs with mouse or in android to zoom in or out. Download example: [url]https://drive.google.com/file/d/1JrmZ3MGfljptP0Qjh3SAdp0IG6izNpek/view?usp=sharing[/url] I edited script also -new script here: [code]/* <action jsname="action_Camera_FOV" description="Camera_FOV"> <property name="ZoomIN_or_OUT" type="int" default="-1" /> <property name="Amount" type="float" default="0.1" /> <property name="MAX_Amount" type="float" default="140.0" /> <property name="MIN_Amount" type="float" default="30.0" /> </action> */ action_Camera_FOV = function() { }; action_Camera_FOV.prototype.execute = function() { var cam = ccbGetActiveCamera(); var Fov = ccbGetSceneNodeProperty(cam, 'FieldOfView_Degrees'); if (this.ZoomIN_or_OUT==1 && Fov >=this.MIN_Amount)//ZOOM IN { Fov-=this.Amount; ccbSetSceneNodeProperty(cam, 'FieldOfView_Degrees', Fov); } if (this.ZoomIN_or_OUT==0 && Fov <=this.MAX_Amount)//ZOOM OUT { Fov+=this.Amount; ccbSetSceneNodeProperty(cam, 'FieldOfView_Degrees', Fov); } if (this.ZoomIN_or_OUT==-1)//RESET { ccbSetSceneNodeProperty(cam, 'FieldOfView_Degrees', 70); } return true; }[/code][/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