Hi,
How can i get if Body reach the UpperLimit in prismatic joint ?
im using prismatic joint as button so if the prismatic joint reach the Upper limit that mean the button is not pressing , so im i doing it right or there is alternative way .
			
			
									
						
										
						b2PrismaticJoint body reach upperLimit
Re: b2PrismaticJoint body reach upperLimit
You can use GetJointTranslation, as mentioned at the end of the section about limits here: http://www.iforce2d.net/b2dtut/joints-prismatic
			
			
									
						
										
						- Checking if a joint is currently at one of its limits is pretty simple: 
bool atLowerLimit = joint->GetJointTranslation() <= joint->GetLowerLimit();
bool atUpperLimit = joint->GetJointTranslation() >= joint->GetUpperLimit(); 
Re: b2PrismaticJoint body reach upperLimit
thank you ..