Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
How to limit X rotation on camera controller?

Registered User
2023-02-21 08:43:26

After the update, I can no longer combine my "controller" with the built-in one, because angle vertical angle limitation does not work that way any more. So, while it is easy to make camera rotate towards mouse cursor, I wasn't been able to make rotation limited. How can this be achieved?

2023-02-22 05:59:44

There is nothing changed for the camera in this update, so not sure what's not working for you, maybe it is your custom controller, can't say much without having a look at the code. Let me know if you are using the available controllers by others like @SmnMhmdy's TPP controller. Man, he has been not in forums, or on his Discord server. Hope is doing good.

Registered User
2023-02-22 20:24:33

Well, okay, a small update here: after a *bit* of excruciating pain I was finally able to make angle limitation.

Also, just_in_case, about the camera thing. I don't know exactly why it works that way for me now (even though there are no changes for camera controllers), but here are some things I found:
- When there is only built-in controller, angle limitation, obviously, works;
- When I set almost every value of built-in controller (move, rotation and jump speed) to zero, leaving only MaxVerticalAngle unchanged, and add my own controller (that allows changing keybinds and sensitivity, which is, in my opinion, a must-have), camera does not rotate (which is logical, since built-in controller does his job at recentering mouse before my controller can register mouse movement);
- When I set my controller first, and a built-in one after it, camera moves towards mouse, but angle limitation does not work. Or at least it used to, but now it seems to be working in some different way.

I also noticed one more issue regarding behaviors with mouse event registration that appeared after the update, but it is small and is fixed by changing order of behaviors.

Create reply:

Posted by: (you are not logged in)

Enter the missing letter in: "Internati?nal" (you are not logged in)




Possible Codes

Feature Code
Link [url] [/url]
Bold [b]bold text[/b]
Image [img][/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]



Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact