playMaker

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

Odd_But_Awesome

  • Playmaker Newbie
  • *
  • Posts: 22
    • Odd but Awesome
Camera Collision - jumpy camera at closer positions
« on: April 24, 2019, 12:11:12 AM »
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