void UpdateTarget(Kvant.SprayMV target, Contact contact) { var input = new Vector2(contact.X, contact.Y); var aspect = new Vector2(1, 640.0f / 1920); target.emitterCenter = (input * 2 - Vector2.one) * _extent * aspect; target.throttle = Mathf.Clamp01(contact.Force * 10) * _throttle; }
void Start() { _spray = GetComponent <Kvant.SprayMV>(); _offset = _spray.emitterSize.y / 2; }
void Start() { _spray = GetComponent <Kvant.SprayMV>(); }