Difference between revisions of "B2.WheelJoint"

From GiderosMobile
(Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2011.6<br/> === Description === <br /> A wheel joint provides two degrees of freedom: translation alo...")
 
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 8: Line 8:
 
is designed for vehicle suspensions.<br />
 
is designed for vehicle suspensions.<br />
 
<br />
 
<br />
 +
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 
{|-
 
{|-
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Methods ===
 
=== Methods ===
 +
[[b2.WheelJoint:enableMotor]] - enables or disables the joint motor<br/>
 +
[[b2.WheelJoint:getJointSpeed]] - returns the current joint translation speed in meters per second.<br/>
 +
[[b2.WheelJoint:getJointTranslation]] - returns the current joint translation in meters.<br/>
 +
[[b2.WheelJoint:getMaxMotorTorque]] - returns the maximum motor torque in N*m<br/>
 +
[[b2.WheelJoint:getMotorSpeed]] - returns the motor speed in radians per second<br/>
 +
[[b2.WheelJoint:getSpringDampingRatio]] - returns the spring damping ratio<br/>
 +
[[b2.WheelJoint:getSpringFrequencyHz]] - returns the spring frequency in Hertz<br/>
 +
[[b2.WheelJoint:isMotorEnabled]] - is the joint motor enabled?<br/>
 +
[[b2.WheelJoint:setMaxMotorTorque]] - sets the maximum motor torque in N*m<br/>
 +
[[b2.WheelJoint:setMotorSpeed]] - sets the motor speed in radians per second<br/>
 +
[[b2.WheelJoint:setSpringDampingRatio]] - sets the spring damping ratio<br/>
 +
[[b2.WheelJoint:setSpringFrequencyHz]] - sets the spring frequency in Hertz (0 = disable the spring)<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 wheel joint provides two degrees of freedom: translation along an axis fixed in bodyA and rotation in the plane. You can use a
joint limit to restrict the range of motion and a joint motor to drive the rotation or to model rotational friction. This joint
is designed for vehicle suspensions.










Methods

b2.WheelJoint:enableMotor - enables or disables the joint motor
b2.WheelJoint:getJointSpeed - returns the current joint translation speed in meters per second.
b2.WheelJoint:getJointTranslation - returns the current joint translation in meters.
b2.WheelJoint:getMaxMotorTorque - returns the maximum motor torque in N*m
b2.WheelJoint:getMotorSpeed - returns the motor speed in radians per second
b2.WheelJoint:getSpringDampingRatio - returns the spring damping ratio
b2.WheelJoint:getSpringFrequencyHz - returns the spring frequency in Hertz
b2.WheelJoint:isMotorEnabled - is the joint motor enabled?
b2.WheelJoint:setMaxMotorTorque - sets the maximum motor torque in N*m
b2.WheelJoint:setMotorSpeed - sets the motor speed in radians per second
b2.WheelJoint:setSpringDampingRatio - sets the spring damping ratio
b2.WheelJoint:setSpringFrequencyHz - sets the spring frequency in Hertz (0 = disable the spring)

Events

Constants