playMaker

Author Topic: Camera Collision - jumpy camera at closer positions  (Read 154 times)

Odd_But_Awesome

  • Playmaker Newbie
  • *
  • Posts: 15
    • View Profile
    • Odd but Awesome
Camera Collision - jumpy camera at closer positions
« on: April 23, 2019, 09:11:12 PM »
Hi all,

Working on a camera collision for a roll a ball game.

Camera in and out seem to work as they should depending on being blocked or not. But an issue exists when the camera is very close it jumps between 2 values rapidly. Adjusting tolerance on the Float compare seemed to help a bit but not completely.

Can anyone help with my current setup? Beside the problem described above can
it be improved otherwise? Should I replace Float Operand subtract with something better/more controllable?


Thank you for taking the time to read.

If someone knows of a tutorial for camera collision using Playmaker (there are heaps of non-PM) please link as I have searched and found nothing helpful to me.

Peace
JG



Notes:
"_LookAtTargetHigh" is an invisible game object floating above the player so the camera center points above the player ball.

"_lookingAtCamera" is a game object centered and following the Player object with a smooth look at camera FSM.

Clamp is based on preferred distances of the camera with tolerance.
Check out my games & VR Cardboard titles at https://oddbutawesome.weebly.com/apps-new.html