|
| 08 Apr 2016 05:51 AM |
It's supposed to move the player in a straight diagonal but instead it's moving them in a right angle to the destination.
Straight:
\
But instead they move in a right angle to the destination:
L
I use this code for the force, it works fine because it does push them to the intended destination at the end of it, it just has awkward right angel pathing. The position doesn't change once it's been set.
force.Position = hit.Parent:findFirstChild("Torso").Position + Vector3.new(script.Parent.Parent:findFirstChild("Torso").CFrame.lookVector.x * 10000, 0, script.Parent.Parent:findFirstChild("Torso").CFrame.lookVector.z * 10000)
"D" is set as 0 and the force values are consistent throughout.
|
|
|
| Report Abuse |
|
|
|
| 08 Apr 2016 05:52 AM |
| It isn't a 100% right angle, but it isn't at all a straight line |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
| 09 Apr 2016 09:19 AM |
| I can change it to any value and it doesn't change anything |
|
|
| Report Abuse |
|
|
| |
|
|
| 09 Apr 2016 09:21 AM |
| I'm fairly sure D is dampening which is something you may actually need to solve your issue. |
|
|
| Report Abuse |
|
|
|
| 09 Apr 2016 09:32 AM |
| What should I change D to? 1000, 3000, 10000, and 100 don't work |
|
|
| Report Abuse |
|
|
|
| 09 Apr 2016 09:32 AM |
| I can make a free model to show what I'm working with if it helps |
|
|
| Report Abuse |
|
|
|
| 09 Apr 2016 09:33 AM |
| if u have dampening at 10000000000000000 and then at 0 u should notice a difference |
|
|
| Report Abuse |
|
|
|
| 09 Apr 2016 09:36 AM |
| I put it at that value and now it didn't move |
|
|
| Report Abuse |
|
|
|
| 09 Apr 2016 09:54 AM |
| When it comes to vector manipulation and force simulators every value is so intwined that you'll need to actually sit and work out exactly how quick you want it to move. If it moves too quickly, it can overstep and move too far but too much will stop it moving completely. I believe I have d 2000, but I have lots of parts also welded to my bodyposition'd part. |
|
|
| Report Abuse |
|
|
|
| 09 Apr 2016 10:09 AM |
| I don't have any welded parts or morphs. This is the model for what isn't working, put the velocity in the workspace and the tool in the starterpack. |
|
|
| Report Abuse |
|
|
|
| 09 Apr 2016 10:11 AM |
| https://www.roblox.com/velocity-example-item?id=396009970 |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|