- Home /
Add relative force to other object
Hi there,
i'm trying to make fans
( like in the game called 'Cut the Rope' )
My add force script:
public float forceAmount = 10.0f;
void OnTriggerStay(Collider other)
{
other.rigidbody.AddRelativeForce(Vector3.up * forceAmount);
//other.transform.eulerAngles = transform.eulerAngles;
}
I have 2 problems:
My AddRelativeForce don't depends on fan rotation. Balloon go always up in the world space.
Balloon should have new rotation depends on 2 or 3 forces applied.
hair.jpg
(122.0 kB)
Comment
I solved first point: other.rigidbody.AddRelativeForce(transform.up * forceAmount);
So, the other problem: You need the fan's force to apply torque that rotates the balloon correct?
Your answer

Follow this Question
Related Questions
How to make a player rotate in a direction with a slope of the ground. 0 Answers
how to tilt boat on turning 2 Answers
Rotate Rigidbody to always face a force 0 Answers
Rotating a moving object 0 Answers
Best way to rotate a physics-object based on input 2 Answers