How To Stop BodyPosition From Vibrating

Hello fellow developpers, I am trying to make this bell pepper rotate on the Y axis. However, it keeps vibrating and I think the BodyPosition is the reason why.

I have a script that is controlling the BodyPosition’s Position, Power, and MaxForce.
This is the script:

local center = script.Parent
local bodyPosition = center.BodyPosition

bodyPosition.Position = center.Position
bodyPosition.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
bodyPosition.P = 10000000000000000000000

I also have a bodyAngularVelocity to make the bellPepper rotate in the Y axis, here are its properties.
Capture2

Thanks :smiley:

Increase the bodyPosition.D

2 Likes

I should increase the dampening of the bodyPosition?

Yes

Thanks :slight_smile: it works very well :+1: :+1:

1 Like