Difference between revisions of "B2.PrismaticJoint"

From GiderosMobile
(Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2011.6<br/> === Description === <br /> A prismatic joint. This joint provides one degree of freedom:...")
 
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Supported platforms:''' <br/>
+
'''Supported platforms:''' android, ios, mac, pc<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 
=== Description ===
 
=== Description ===
Line 6: Line 6:
 
A prismatic joint. This joint provides one degree of freedom: translation along an axis fixed in body1. Relative rotation is prevented. You can use a joint limit to restrict the range of motion and a joint motor to drive the motion or to model joint friction. <br />
 
A prismatic joint. This joint provides one degree of freedom: translation along an axis fixed in body1. Relative rotation is prevented. You can use a joint limit to restrict the range of motion and a joint motor to drive the motion or to model joint friction. <br />
 
<br />
 
<br />
 +
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 
{|-
 
{|-
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Methods ===
 
=== Methods ===
 +
[[b2.PrismaticJoint:enableLimit]] - enables or disables the joint limit<br/>
 +
[[b2.PrismaticJoint:enableMotor]] - enables or disables the joint motor<br/>
 +
[[b2.PrismaticJoint:getJointSpeed]] - returns the current joint translation speed in meters per second<br/>
 +
[[b2.PrismaticJoint:getJointTranslation]] - returns the current joint translation in meters<br/>
 +
[[b2.PrismaticJoint:getLimits]] - returns the lower and upper joint limits in meters<br/>
 +
[[b2.PrismaticJoint:getMotorSpeed]] - returns the motor speed in meters per second<br/>
 +
[[b2.PrismaticJoint:isLimitEnabled]] - is the joint limit enabled?<br/>
 +
[[b2.PrismaticJoint:isMotorEnabled]] - is the joint motor enabled?<br/>
 +
[[b2.PrismaticJoint:setLimits]] - sets the joint limits in meters<br/>
 +
[[b2.PrismaticJoint:setMaxMotorForce]] - sets the maximum motor force in N<br/>
 +
[[b2.PrismaticJoint:setMotorSpeed]] - sets the motor speed in meters per second<br/>
 +
[[b2.RevoluteJoint:getMotorForce]] - returns the current motor force given the inverse time step<br/>
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Events ===
 
=== Events ===
 
=== Constants ===
 
=== Constants ===
 
|}
 
|}

Revision as of 08:57, 23 August 2018

Supported platforms: android, ios, mac, pc
Available since: Gideros 2011.6

Description


A prismatic joint. This joint provides one degree of freedom: translation along an axis fixed in body1. Relative rotation is prevented. You can use a joint limit to restrict the range of motion and a joint motor to drive the motion or to model joint friction.










Methods

b2.PrismaticJoint:enableLimit - enables or disables the joint limit
b2.PrismaticJoint:enableMotor - enables or disables the joint motor
b2.PrismaticJoint:getJointSpeed - returns the current joint translation speed in meters per second
b2.PrismaticJoint:getJointTranslation - returns the current joint translation in meters
b2.PrismaticJoint:getLimits - returns the lower and upper joint limits in meters
b2.PrismaticJoint:getMotorSpeed - returns the motor speed in meters per second
b2.PrismaticJoint:isLimitEnabled - is the joint limit enabled?
b2.PrismaticJoint:isMotorEnabled - is the joint motor enabled?
b2.PrismaticJoint:setLimits - sets the joint limits in meters
b2.PrismaticJoint:setMaxMotorForce - sets the maximum motor force in N
b2.PrismaticJoint:setMotorSpeed - sets the motor speed in meters per second
b2.RevoluteJoint:getMotorForce - returns the current motor force given the inverse time step

Events

Constants