|
| 17 Jul 2014 03:56 AM |
| I made a plane that uses body velocity to move (plane.Position-mouse.hit.p). The issue with this is if you click in the sky 9000 studs away you go racing away. I need a way to control the speed of my plane. Can anyone suggest what I should do? |
|
|
| Report Abuse |
|
|
RA2lover
|
  |
| Joined: 09 Nov 2008 |
| Total Posts: 1254 |
|
| |
|
| |
|
Aaaboy97
|
  |
| Joined: 05 Apr 2009 |
| Total Posts: 6612 |
|
|
| 17 Jul 2014 10:40 AM |
A velocity vector formed by
(a - b)
will move at approximately (a - b).magnitude studs/second, whereas a velocity vector formed by
(a - b).unit*speed
will move at approximately speed studs/second. |
|
|
| Report Abuse |
|
|
|
| 17 Jul 2014 12:00 PM |
| dude, that has (sadly) been one of the highlights of my day! Thanks so much! |
|
|
| Report Abuse |
|
|
|
| 17 Jul 2014 10:11 PM |
A nice person named MHebes fixed my plane: speed=50
bodyvelocity.velocity=plane.Main.CFrame.lookVector.unit*speed |
|
|
| Report Abuse |
|
|
jaredmai
|
  |
| Joined: 08 Sep 2011 |
| Total Posts: 395 |
|
| |
|