ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Programming and Scripting
forum topic indicator Reference FPS Camera Collision hitbox size
person icon
upwrd
Registered User
Quote
2023-08-04 01:34:46

Hello,

I am trying to create a sliding behavior for my fps game. I have figured out most of the actual movement, but there is no feedback for the player. (You just move fast in your facing direction.)

How would I lower the camera to show that you are sliding?

Thank you.

person icon
Guest
Guest
Quote
2023-08-04 04:47:21

The FPS controller example I had you download from Sven's page has another JS file with it that switches from one camera to another. You could use that to show the player sliding on the floor. The default FPS camera won't work so both cameras need to have custom controllers on them and obviously one of the cameras needs to be closer to the floor, etc.

person icon
upwrd
Registered User
Quote
2023-08-04 18:05:49

I noticed that. However, the problem is the fact that I can't seem to move the camera's together as one unit.

Any ideas?

person icon
Guest
Guest
Quote
2023-08-04 18:55:10

Doesn't Sven's script do that for you? It's been some time since I looked at it. You don't have to parent the cameras together for them to work. One camera can off in space or under the level etc. The code is supposed to mirror the properties of the camera so when you switch cameras the other camera's position, rotation, target, etc is the same as the previous camera. It's like teleporting.


Create reply:










 

  

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


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






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