Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name: Password:
Ambiera Forum > CopperCube > Programming and Scripting
Little question for custom camera controllers
Author Text

dekon_17
Registered User
Quote
2022-05-16 12:44:07

Yeah, since I can't make customizable controls or sensetivity for standart first-person camera controller, I've decided to make my own! The only question (for now, at least) is the cursor positioning. The thing is that I don't know is there a way to change its position by some sort of command. As I noticed with built-in controller, it constantly changeing position of a cursor to be on center. Is it possible to do something like that?


hadoken
Guest
Quote
2022-05-16 14:57:53

@dekon_17

To get a working custom fps controller you would need cursor lock in the middle of the screen (same prerequisite as for a decent custom 3rd person cam controller -> you can have a look at a former discussion about the issue here:
https://ambiera.com/forum.php?t=...
and also at smnmhmdy's great working solution for a better 3rd person cam controller making use of the default CC fps cam here:
https://ambiera.com/forum.php?t=...).

From my knowledge and experience cursor lock is only possible by involving CopperCube's built-in fps or model viewer cam. Unfortunately there seems no other way to achieve cursor lock for now. With any other camera type and javascript your cursor would always move around the screen and stop at screen borders thus making further movements and rotations as turnarounds impossible.

Nevertheless you can take the built-in fps cam and try to improve/extend it somehow with javascript to fit your needs better.


hadoken
Guest
Quote
2022-05-16 15:05:46

@dekon_17

in case you missed it, smnmhmdy's FPS Mouse Look behavior with sensitivity support can be found here:

https://www.ambiera.com/forum.ph...


dekon_17
Registered User
Quote
2022-05-16 17:28:35

So, I've looked at the FPS Mouse Look behavior... You know, I'll better try to use a combination of built-in FPS camera and some form of script. At least for now.


Robo
Guest
Quote
2022-05-21 06:47:00

If your talking about menu selections with the mouse then change from FPS camera to simple camera and you can then use the mouse to select what you like...

Change back again when done but allow a 30ms delay from switching cameras to being able to use it...


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internat?onal" (you are not logged in)


Text:

 

  

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© 2020 Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact