|
| 29 Jan 2017 09:18 AM |
When I apply a BodyPosition Force to my Knife, it works great in Studio but in game, the knife travels slow and a little messed up. You can test it here:
https://www.roblox.com/games/611999620/Knife-test#!/game-instances
The knife travels pretty slow with the BodyPosition .P of 15000. What would be the solution to this? |
|
|
| Report Abuse |
|
|
ChiefDays
|
  |
| Joined: 26 Sep 2016 |
| Total Posts: 502 |
|
|
| 29 Jan 2017 09:26 AM |
Firstly, in a BodyPosition you don't have to change the P but the MaxForce.
Even with [BP.P = math.huge] the MaxForce will limit it's speed. Instead change the MaxForce to Vector3.new(math.huge,math.huge,math.huge).
http://wiki.roblox.com/index.php?title=API:Class/BodyPosition
Either way you can use BodyVelocity(Best choice).
http://wiki.roblox.com/index.php?title=API:Class/BodyVelocity
|
|
|
| Report Abuse |
|
|
|
| 29 Jan 2017 09:39 AM |
@Chief
Thanks for the Info. I changed it to BodyVelocity like you said and it works alot better. But I still see it glitching in mid air unlike other games where it is much visually smoother. Is this because of lag and is there any solution? |
|
|
| Report Abuse |
|
|
ChiefDays
|
  |
| Joined: 26 Sep 2016 |
| Total Posts: 502 |
|
|
| 29 Jan 2017 09:53 AM |
Disable the BodyVelocity when it hits something.
|
|
|
| Report Abuse |
|
|