Class: MSPhysics::Universal
- Defined in:
- RubyExtension/MSPhysics/joint_universal.rb
Overview
Constant Summary
- DEFAULT_MIN =
-180.0.degrees
- DEFAULT_MAX =
180.0.degrees
- DEFAULT_LIMITS_ENABLED =
false- DEFAULT_FRICTION =
0.0- DEFAULT_CONTROLLER =
1.0
Constants inherited from Joint
Joint::DEFAULT_BODIES_COLLIDABLE, Joint::DEFAULT_BREAKING_FORCE, Joint::DEFAULT_SOLVER_MODEL, Joint::DEFAULT_STIFFNESS
Instance Method Summary collapse
-
#controller ⇒ Numeric
Get magnitude of the angular friction.
-
#controller=(value) ⇒ Object
Set magnitude of the angular friction.
-
#cur_alpha1 ⇒ Numeric
Get current angular acceleration in radians per second per second along joint Z-axis.
-
#cur_alpha2 ⇒ Numeric
Get current angular acceleration in radians per second per second along joint X-axis.
-
#cur_angle1 ⇒ Numeric
Get current angle in radians along joint Z-axis.
-
#cur_angle2 ⇒ Numeric
Get current angle in radians along joint X-axis.
-
#cur_omega1 ⇒ Numeric
Get current angular velocity in radians per second along joint Z-axis.
-
#cur_omega2 ⇒ Numeric
Get current angular velocity in radians per second along joint X-axis.
-
#friction ⇒ Numeric
Get angular friction.
-
#friction=(value) ⇒ Object
Set angular friction.
-
#initialize(world, parent, pin_tra, group = nil) ⇒ Universal
constructor
Create a universal joint.
-
#limits1_enabled=(state) ⇒ Object
Enable/disable min & max angle limits along joint Z-axis.
-
#limits1_enabled? ⇒ Boolean
Determine whether min & max angle limits along joint Z-axis are enabled.
-
#limits2_enabled=(state) ⇒ Object
Enable/disable min & max angle limits along joint X-axis.
-
#limits2_enabled? ⇒ Boolean
Determine whether min & max angle limits along joint X-axis are enabled.
-
#max1 ⇒ Numeric
Get maximum angle in radians along joint Z-axis.
-
#max1=(value) ⇒ Object
Set maximum angle in radians along joint Z-axis.
-
#max2 ⇒ Numeric
Get maximum angle in radians along joint X-axis.
-
#max2=(value) ⇒ Object
Set maximum angle in radians along joint X-axis.
-
#min1 ⇒ Numeric
Get minimum angle in radians along joint Z-axis.
-
#min1=(value) ⇒ Object
Set minimum angle in radians along joint Z-axis.
-
#min2 ⇒ Numeric
Get minimum angle in radians along joint X-axis.
-
#min2=(value) ⇒ Object
Set minimum angle in radians along joint X-axis.
Methods inherited from Joint
#address, all_joints, #bodies_collidable=, #bodies_collidable?, #breaking_force, #breaking_force=, #child, #connect, #connected?, #destroy, #disconnect, #dof, #get_pin_matrix, #get_pin_matrix2, #group, joint_by_address, #name, #name=, #parent, #set_pin_matrix, #solver_model, #solver_model=, #stiffness, #stiffness=, #type, #valid?, validate, #world
Methods inherited from Entity
Constructor Details
#initialize(world, parent, pin_tra, group = nil) ⇒ Universal
Create a universal joint.
Instance Method Details
#controller ⇒ Numeric
Default controller value is 1.0.
The actual friction is friction * controller.
Get magnitude of the angular friction.
#controller=(value) ⇒ Object
Default controller value is 1.0.
The actual friction is friction * controller.
Set magnitude of the angular friction.
#cur_alpha1 ⇒ Numeric
Get current angular acceleration in radians per second per second along joint Z-axis.
#cur_alpha2 ⇒ Numeric
Get current angular acceleration in radians per second per second along joint X-axis.
#cur_angle1 ⇒ Numeric
Get current angle in radians along joint Z-axis.
#cur_angle2 ⇒ Numeric
Get current angle in radians along joint X-axis.
#cur_omega1 ⇒ Numeric
Get current angular velocity in radians per second along joint Z-axis.
#cur_omega2 ⇒ Numeric
Get current angular velocity in radians per second along joint X-axis.
#friction ⇒ Numeric
The actual friction is friction * controller.
Get angular friction.
#friction=(value) ⇒ Object
The actual friction is friction * controller.
Set angular friction.
#limits1_enabled=(state) ⇒ Object
Enable/disable min & max angle limits along joint Z-axis.
#limits1_enabled? ⇒ Boolean
Determine whether min & max angle limits along joint Z-axis are enabled.
#limits2_enabled=(state) ⇒ Object
Enable/disable min & max angle limits along joint X-axis.
#limits2_enabled? ⇒ Boolean
Determine whether min & max angle limits along joint X-axis are enabled.
#max1 ⇒ Numeric
Get maximum angle in radians along joint Z-axis.
#max1=(value) ⇒ Object
Set maximum angle in radians along joint Z-axis.
#max2 ⇒ Numeric
Get maximum angle in radians along joint X-axis.
#max2=(value) ⇒ Object
Set maximum angle in radians along joint X-axis.
#min1 ⇒ Numeric
Get minimum angle in radians along joint Z-axis.
#min1=(value) ⇒ Object
Set minimum angle in radians along joint Z-axis.
#min2 ⇒ Numeric
Get minimum angle in radians along joint X-axis.
#min2=(value) ⇒ Object
Set minimum angle in radians along joint X-axis.