playMaker

Author Topic: Limit Z Rotation, Rigidbody  (Read 1623 times)

Prototype_6492

  • Junior Playmaker
  • **
  • Posts: 50
Limit Z Rotation, Rigidbody
« 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?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Limit Z Rotation, Rigidbody
« Reply #1 on: October 15, 2015, 03:00:00 PM »
Hi,
maybe you can use a float clamp?

Prototype_6492

  • Junior Playmaker
  • **
  • Posts: 50
Re: Limit Z Rotation, Rigidbody
« Reply #2 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?