Jump to content

angle limitation of two connected object


Granfury
 Share

Recommended Posts

How can i put limits for rotation angle of two objects which connected by "Constraint"?

I'm using:

game.physics.p2.createRevoluteConstraint(object_A, [0, -20], object_B, [0, 20], maxForce);

these object can make rotation 360 degrees -  it's not suitable!

We should put rotation angle from 0 to 90 degrees.

How can we make it? 

angle.png

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...