I have two scripts for pinball flippers…
They rotate where they are supposed to, but it’s so fast that collision isn’t being detected by the ball when they are moving!
I looked all up and down google for a solution to my problem, but I’m not getting anywhere
Please HALP Me! Thanks!
function Update () {
if(Input.GetButtonDown(“RightFlipper”)){
transform.Rotate (0, -81, 0);
}
if(Input.GetButtonUp(“RightFlipper”)){
transform.eulerAngles = Vector3(0, 277.81, 180);
}
}`
function Update () {
if(Input.GetButtonDown("LeftFlipper")){
transform.Rotate (0, 81, 0);
}
if(Input.GetButtonUp("LeftFlipper")){
transform.eulerAngles = Vector3(0, 180, 180);
}
}
Also I can’t ask my questions 3/4 of the time because of the tag error? And it doesn’t give me tags to select from? Not sure how after however many years this is still a problem with the site?
AddTorque(..)? Use it in your Rigidbody.
– woodoo