Vector3 MoveIdle() { Vector3 idleDir = DirectionalPerlin.Directional3D(transform.position, behaviourParams.idleNoiseFrequency, behaviourParams.useTimeOffset ? Time.timeSinceLevelLoad : 0f); Debug.DrawRay(transform.position, idleDir, Color.magenta, 0.1f); return(DirectionalPerlin.Directional3D(transform.position, behaviourParams.idleNoiseFrequency, behaviourParams.useTimeOffset ? Time.timeSinceLevelLoad : 0)); }
float3 MoveIdle() { return(DirectionalPerlin.Directional3D(pos, idleNoiseFrequency, offset)); }