adds constrain function to Vector3
constrain position of platform during perlin moves