Hi,
I’m learning the chain movement, like the lamp in the bootcamp demo. but in this case it’s a chain attached to a stick (cf the sketch), I use the same configuration as the bootcamp demo, I moved the anchor point to be at the good place. I’m using this script to rotate the stick:
if (Input.GetMouseButton(0))
{
//Set the AmtToRotate
xDeg += Input.GetAxis("Mouse X") * xSpeed * SpeedCoef;
yDeg -= Input.GetAxis("Mouse Y") * ySpeed * SpeedCoef;
// Make sure that the yDeg is still in the Y limits
yDeg = ClampAngle(yDeg, yMinLimit, yMaxLimit);
//Use the AmtToRotate to rotate the camera
desiredRotation = Quaternion.Euler(yDeg, xDeg, 0);
currentRotation = transform.rotation;
//Add a damping
rotation = Quaternion.Slerp(currentRotation, desiredRotation, Time.deltaTime * RotDamp);
transform.rotation = rotation;
}
My stick rotate fine but I can’t give a centripete force to my chain. I’ve got a good physic when I’m moving the stick on the Y axis with the mouse (so i’m leaning the stick).
Why doesn’t it take the centripete force when i’m rotating it ? It stays stuck to the stick…
