Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: heavygunner on July 11, 2020, 07:18:53 AM
-
Hello !
Working on Zombie Defense game. To look around map, I placed a empty object on center of map and added get axis and set velocity to move around. and Use Smooth Follow Action on camera and set that center empty object as Target.
What is want is, I wanna limit camera's movement. Only can look within certain radius / distance from center (0,0,0).
Any hints ?
-
Hi,
you can create an FSM where all actions runs in Late Update ( you'll need the advanced versions of some actions on the ecosystem for some math and vector operations)
in that fsm, check the position, clamp it within your radius and set the position back. that's how to constraint effectily.
Bye,
Jean