Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
About Moving?
#1
According to the example you provided, I wrote a demo that uses the mouse to move. At first, the demo is normal, but the later movement slowly turns into the opposite direction. Why?

              if (Input.GetMouseButton(0))
                {
                    direction += moveDirection* moveSpeed; 
                    softbody.AddForce(direction.normalized * moveSpeed, ForceMode.Acceleration);
                }
Reply


Messages In This Thread
About Moving? - by zero16832 - 27-02-2021, 09:15 AM
RE: About Moving? - by josemendez - 27-02-2021, 09:56 AM
RE: About Moving? - by zero16832 - 27-02-2021, 10:17 AM
RE: About Moving? - by josemendez - 28-02-2021, 07:04 PM
RE: About Moving? - by zero16832 - 01-03-2021, 02:17 AM
RE: About Moving? - by josemendez - 01-03-2021, 01:26 PM
RE: About Moving? - by zero16832 - 02-03-2021, 02:12 AM
RE: About Moving? - by zero16832 - 02-03-2021, 09:46 AM
RE: About Moving? - by josemendez - 02-03-2021, 09:54 AM
RE: About Moving? - by josemendez - 02-03-2021, 11:59 AM
RE: About Moving? - by josemendez - 02-03-2021, 12:23 PM
RE: About Moving? - by josemendez - 02-03-2021, 01:54 PM
RE: About Moving? - by zero16832 - 02-03-2021, 02:42 PM
RE: About Moving? - by josemendez - 02-03-2021, 02:44 PM
RE: About Moving? - by zero16832 - 02-03-2021, 03:11 PM
RE: About Moving? - by zero16832 - 03-03-2021, 02:11 PM
RE: About Moving? - by josemendez - 03-03-2021, 02:28 PM
RE: About Moving? - by zero16832 - 03-03-2021, 02:38 PM
RE: About Moving? - by josemendez - 03-03-2021, 02:44 PM
RE: About Moving? - by zero16832 - 03-03-2021, 02:52 PM
RE: About Moving? - by josemendez - 03-03-2021, 02:53 PM
RE: About Moving? - by zero16832 - 03-03-2021, 03:00 PM
RE: About Moving? - by josemendez - 03-03-2021, 03:05 PM
RE: About Moving? - by zero16832 - 03-03-2021, 03:12 PM
RE: About Moving? - by josemendez - 03-03-2021, 03:18 PM
RE: About Moving? - by zero16832 - 03-03-2021, 03:34 PM
RE: About Moving? - by josemendez - 03-03-2021, 03:44 PM
RE: About Moving? - by zero16832 - 04-03-2021, 09:50 AM
RE: About Moving? - by josemendez - 05-03-2021, 10:38 AM
RE: About Moving? - by zero16832 - 05-03-2021, 02:18 PM
RE: About Moving? - by josemendez - 05-03-2021, 02:39 PM
RE: About Moving? - by zero16832 - 05-03-2021, 03:32 PM
RE: About Moving? - by josemendez - 05-03-2021, 03:41 PM
RE: About Moving? - by the-lander - 01-03-2021, 08:23 AM
RE: About Moving? - by josemendez - 01-03-2021, 09:01 AM