generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: bodyPosition not working as intended (wrong pathing)

Previous Thread :: Next Thread 
111rules111 is not online. 111rules111
Joined: 19 Jul 2010
Total Posts: 1223
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
111rules111 is not online. 111rules111
Joined: 19 Jul 2010
Total Posts: 1223
08 Apr 2016 05:52 AM
It isn't a 100% right angle, but it isn't at all a straight line
Report Abuse
111rules111 is not online. 111rules111
Joined: 19 Jul 2010
Total Posts: 1223
08 Apr 2016 11:01 AM
bump
Report Abuse
111rules111 is not online. 111rules111
Joined: 19 Jul 2010
Total Posts: 1223
08 Apr 2016 03:43 PM
fg
Report Abuse
111rules111 is not online. 111rules111
Joined: 19 Jul 2010
Total Posts: 1223
08 Apr 2016 04:54 PM
dfgdfgdfg
Report Abuse
111rules111 is not online. 111rules111
Joined: 19 Jul 2010
Total Posts: 1223
09 Apr 2016 05:07 AM
bump
Report Abuse
RightLegRed is not online. RightLegRed
Joined: 02 Oct 2009
Total Posts: 6761
09 Apr 2016 05:47 AM
Why is D 0?
Report Abuse
111rules111 is not online. 111rules111
Joined: 19 Jul 2010
Total Posts: 1223
09 Apr 2016 09:19 AM
I can change it to any value and it doesn't change anything
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
09 Apr 2016 09:19 AM
not true ^
Report Abuse
RightLegRed is not online. RightLegRed
Joined: 02 Oct 2009
Total Posts: 6761
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
111rules111 is not online. 111rules111
Joined: 19 Jul 2010
Total Posts: 1223
09 Apr 2016 09:32 AM
What should I change D to? 1000, 3000, 10000, and 100 don't work
Report Abuse
111rules111 is not online. 111rules111
Joined: 19 Jul 2010
Total Posts: 1223
09 Apr 2016 09:32 AM
I can make a free model to show what I'm working with if it helps
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
09 Apr 2016 09:33 AM
if u have dampening at 10000000000000000 and then at 0 u should notice a difference
Report Abuse
111rules111 is not online. 111rules111
Joined: 19 Jul 2010
Total Posts: 1223
09 Apr 2016 09:36 AM
I put it at that value and now it didn't move
Report Abuse
RightLegRed is not online. RightLegRed
Joined: 02 Oct 2009
Total Posts: 6761
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
111rules111 is not online. 111rules111
Joined: 19 Jul 2010
Total Posts: 1223
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
111rules111 is not online. 111rules111
Joined: 19 Jul 2010
Total Posts: 1223
09 Apr 2016 10:11 AM
https://www.roblox.com/velocity-example-item?id=396009970
Report Abuse
111rules111 is not online. 111rules111
Joined: 19 Jul 2010
Total Posts: 1223
09 Apr 2016 01:46 PM
bump
Report Abuse
111rules111 is not online. 111rules111
Joined: 19 Jul 2010
Total Posts: 1223
09 Apr 2016 04:07 PM
ghd
Report Abuse
111rules111 is not online. 111rules111
Joined: 19 Jul 2010
Total Posts: 1223
10 Apr 2016 03:55 AM
gh
Report Abuse
111rules111 is not online. 111rules111
Joined: 19 Jul 2010
Total Posts: 1223
10 Apr 2016 01:44 PM
fgcg
Report Abuse
111rules111 is not online. 111rules111
Joined: 19 Jul 2010
Total Posts: 1223
14 Apr 2016 03:18 AM
v
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image