Untitled
Never
using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(Rigidbody2D))] public class MoveComponent : MonoBehaviour { [SerializeField] private float _speedFactor = 1f; private Camera _mainCamera = null; private Rigidbody2D _body = null; private Vector3 _currentDelta = Vector3.zero; private void Awake() { _mainCamera = Camera.main; _body = GetComponent<Rigidbody2D>(); } private void Update() { var worldMousePointer = _mainCamera.ScreenToWorldPoint(new Vector3(Input.mousePosition.x, Input.mousePosition.y, _mainCamera.nearClipPlane)); worldMousePointer.z = _body.transform.position.z; _currentDelta = worldMousePointer - _body.transform.position; } private void FixedUpdate() { _body.MovePosition(_body.transform.position + (_currentDelta * Time.fixedDeltaTime * _speedFactor)); _currentDelta = Vector3.zero; } }
Raw Text
-
Untitled
16 min ago
-
YES! His Big Dick Destroyed My Pussy For All My Camshow Fans!
29 min ago
-
Nympho russian milf gets fucked by young latin guy with big cock
59 min ago
-
Untitled
1 hour ago
-
https://www.facebook.com/profile.php?id=61558754032343
1 hour ago
-
Untitled
1 hour ago
-
Makers CBD Gummies Reviews DOES IT REALLY WORK? CLIENTS REVEAL THE TRUTH
1 hour ago
-
My STEP-SISTER wanted to use the bathroom and ended up FUCKING me!
1 hour ago
-
https://middlesexcountynj.powerappsportals.us/forums/general-discussion/d2322d7e-c6fe-ee11-a73d-001d
1 hour ago
-
Untitled
1 hour ago