Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Prototype_6492 on October 15, 2015, 02:49:16 PM

Title: Limit Z Rotation, Rigidbody
Post by: Prototype_6492 on October 15, 2015, 02:49:16 PM
Just wondering if there was a way to go about this. Making a 2d game, when my character is on a hill I want his z to rotate slightly. Not enough to do backflips or any of that though, just enough to have him angle a bit with the hill. which is what it currently does. Anyone have a solution for this?
Title: Re: Limit Z Rotation, Rigidbody
Post by: djaydino on October 15, 2015, 03:00:00 PM
Hi,
maybe you can use a float clamp?
Title: Re: Limit Z Rotation, Rigidbody
Post by: Prototype_6492 on October 15, 2015, 03:36:55 PM
How would I go about utilizing that? I'm aware of the float clamp, but how I would I use that with the rigidbody?