Ambiera ForumDiscussions, Help and Support. |
|
[ 1 2 ] Page 1 of 2 |
|
|||||
|
This behavior will handle the fps camera rotations, which allows the mouse sensitivity to be changed at run time. Put Mouse Look above the built-in fps behavior with it's rotate speed set to 0. Sensitivity can be changed at run time using Setting_Sens (or Setting_SensH and Setting_SensV if you want different sensitivity values on horizontal and vertical movements) js variable. Sensitivity can also be changed using the mouse wheel in real-time. Download: https://www.dropbox.com/s/o07uod... |
||||
|
Works great rotation is smooth as butter thanks a lot for sharing😇 |
||||
|
Smn Mhmdy, thank you for this great mouse behavior. Additional features like this one or like a perfect TPP camera controller offer the possibility to create games where the user-friendly experience for the player is taken into consideration by the developers. The content of the file "behavior_MouseLook.js" shows an unexpected level of complexity requiring serious programming skills and a deep knowledge of javascript. The included lines of codes "Matrix transformation handler" for which you give credit to Nikolaus Gebhardt demonstrate the hard work he dedicated to the creation of CopperCube. :-) |
||||
|
@just_in_case @marcw I hope you'll find it useful :) |
||||
|
Great addition and very much needed. If I wasnt using my animation controlled camera I would use yours as its quite good - cheers! |
||||
|
I have tried and tried to interact with these variables with my own script and nothings working. Please help :( |
||||
|
Without looking at how you are using these variables in your script, it's abit harder to tell you why they are not working. Either provide the code or explain how you are using the variables in your script. |
||||
|
Of course, I am trying to display the value onto a 2d overlay and have buttons to increase and decrease the sensitivity Label (runs every ms): var thisSens = ccbGetCopperCubeVariable("Setting_Sens"); thisSens = thisSens.toString(); label = ccbGetSceneNodeFromName("sens"); ccbSetSceneNodeProperty(label, "Text" thisSens); Buttons: Settings_Sens = Settings_Sens + 1 and Settings_Sens = Settings_Sens - 1 |
||||
|
Also thank you for the fast response :0 |
||||
|
Another addition, yes the comma is missing there, it isnt missing in the actual code |
||||
|
Settings_Sens is not defined is returned in debug |
||||
|
Any idea why I cant access Settings_Sens expect with mouse wheel.... |
||||
|
I can't seem to access the variables you mentioned... smnmhmdy wrote:
This behavior will handle the fps camera rotations, which allows the mouse sensitivity to be changed at run time. Put Mouse Look above the built-in fps behavior with it's rotate speed set to 0. Sensitivity can be changed at run time using Setting_Sens (or Setting_SensH and Setting_SensV if you want different sensitivity values on horizontal and vertical movements) js variable. Sensitivity can also be changed using the mouse wheel in real-time. Download: https://www.dropbox.com/s/o07uod... |
||||
|
Through trial and error I think I am figuring it out, but if anybody knows more about this behavior I'd love to know as it works good and im having ease of use issues with it so more expanation on original post would be nice albeit great work keep it up and thank you for the behavior |
||||
|
How would I go about changing this variable in a different scene... that seems to cause an issue |
[ 1 2 ] Page 1 of 2 |
|