chaokid9
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 6187 |
|
|
| 01 Nov 2013 11:12 PM |
| Does anybody have any functions for this? (Not the velocity, that is very buggy for me.) I wanted to know before I wasted my time making one from scratch. |
|
|
| Report Abuse |
|
|
|
| 01 Nov 2013 11:15 PM |
| Why not velocity. Just absolute value all three numbers and add them. |
|
|
| Report Abuse |
|
|
MHebes
|
  |
| Joined: 04 Jan 2013 |
| Total Posts: 2278 |
|
|
| 01 Nov 2013 11:17 PM |
Josh is close.
local speed = PART.Velocity.magnitude |
|
|
| Report Abuse |
|
|
chaokid9
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 6187 |
|
|
| 01 Nov 2013 11:17 PM |
| For some reason when velocity gets very small it never seems to get to 0, even when the object is completely still. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 01 Nov 2013 11:18 PM |
^ Gravity or Friction
Anchor it if you want it to STOP |
|
|
| Report Abuse |
|
|
MHebes
|
  |
| Joined: 04 Jan 2013 |
| Total Posts: 2278 |
|
|
| 01 Nov 2013 11:18 PM |
Uh... No? I'm looking at a part right now. Velocity = 0,0,0 Velocity.magnitude = 0 |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 01 Nov 2013 11:20 PM |
It actually depends.
If you are on it, it will probably slightly move |
|
|
| Report Abuse |
|
|
chaokid9
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 6187 |
|
|
| 01 Nov 2013 11:20 PM |
| Yeah, but I am referring to when the object was previously moving and naturally comes to a stop. |
|
|
| Report Abuse |
|
|
MHebes
|
  |
| Joined: 04 Jan 2013 |
| Total Posts: 2278 |
|
|
| 01 Nov 2013 11:21 PM |
| If you're trying to use a conditional to check when a part stops, just have a small threshold of like 0.05 or something. |
|
|
| Report Abuse |
|
|
chaokid9
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 6187 |
|
|
| 01 Nov 2013 11:26 PM |
| Yeah, turn out this was a display bug and the actual velocity was changing regularly. I guess Velocity will work! |
|
|
| Report Abuse |
|
|