JazzJackrabbit Community Forums

JazzJackrabbit Community Forums (http://www.jazz2online.com/jcf/index.php)
-   JJ2+ Issue Tracker (http://www.jazz2online.com/jcf/forumdisplay.php?f=49)
-   -   Feature Request Some sort of camera_behaviour function or interface for players (http://www.jazz2online.com/jcf/showthread.php?t=20442)

Zero[CDF] Nov 29, 2020 02:32 AM

Some sort of camera_behaviour function or interface for players
 
Let's say the player is swimming/floating, and I implement a transformation that, upon activation, moves the player 32 pixels above where he was in an un-transformed state. Since I can set xPos and yPos in onPlayer(), this is easy. The problem is the camera. I want to be able to say to the camera:
"Keep the normal camera behavior when the transformation is inactive, but when it is active, act as if the player is 32 pixels below his actual position." I can't do that with cameraUnfreeze and cameraFreeze. I tried to, but you always get a noticeable jitter when the transformation activates or deactivates. I think I'd need access to a player's "camera behavior" method, so I can write my own as a wrapper around the default method.


All times are GMT -8. The time now is 04:57 AM.

Powered by vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
JCF © 2001-Infinity Jazz2Online