Blockland Forums > Modification Help

Flip Player Camera

<< < (2/2)

adel:

--- Quote from: Goth77 on January 12, 2023, 08:35:08 PM ---why the heck is it negative pi? In retrospect, my line of thinking was that it would be in degrees from 0-360 or something along those lines.

--- End quote ---
pretty much all of the game's code uses radians and not degrees


--- Quote from: Goth77 on January 12, 2023, 08:35:08 PM ---edit: Okay so it works fine except for the one tiny issue, that being in 3rd person (and to everyone seeing you) your character is stuck looking at the sky and can't stand up straight

--- End quote ---
that's because flipping the max look angle makes the game think you're looking up, not backwards
the look animation was likely coded assuming nobody would use values past pi/2

Biqus:

--- Quote from: Goth77 on January 12, 2023, 08:35:08 PM ---well holy crap, it really was that easy.  why the heck is it negative pi? In retrospect, my line of thinking was that it would be in degrees from 0-360 or something along those lines.

thanks much Biqus

edit: Okay so it works fine except for the one tiny issue, that being in 3rd person (and to everyone seeing you) your character is stuck looking at the sky and can't stand up straight



--- End quote ---
Ur welcome. if it looks better you can change the numbers 2 positive and you will be looking down instead

Goth77:
Alright, so by copying the default player and shape mdts code and making a new playertype from it, by replacing the look sequence I have made it so that the player stands normally (root is used as look)

this brings another question, is there a way to make it so that the camera is facing the characters back instead of the front?



Conan:
unfortunately not really with this approach as the whole upside down is predicated on rotating the original view by 180

you could do some invisible/hidden bot shenanigans to make it work from behind as discussed in dms. a new idea that came to mind is using spy cam > mounting a bot to spy cam with inverted view > setting that bot to control the player and the cam to control the bot

Navigation

[0] Message Index

[*] Previous page

Go to full version