Class: MSPhysics::Corkscrew
- Defined in:
- RubyExtension/MSPhysics/joint_corkscrew.rb
Overview
Constant Summary
- DEFAULT_MIN_POSITION =
-10.0
- DEFAULT_MAX_POSITION =
10.0- DEFAULT_MIN_ANGLE =
-180.0.degrees
- DEFAULT_MAX_ANGLE =
180.0.degrees
- DEFAULT_LINEAR_LIMITS_ENABLED =
false- DEFAULT_ANGULAR_LIMITS_ENABLED =
false- DEFAULT_LINEAR_FRICTION =
0.0- DEFAULT_ANGULAR_FRICTION =
0.0
Constants inherited from Joint
Joint::DEFAULT_BODIES_COLLIDABLE, Joint::DEFAULT_BREAKING_FORCE, Joint::DEFAULT_SOLVER_MODEL, Joint::DEFAULT_STIFFNESS
Instance Method Summary collapse
-
#angular_friction ⇒ Numeric
Get rotational friction.
-
#angular_friction=(value) ⇒ Object
Set rotational friction.
-
#angular_limits_enabled=(state) ⇒ Object
Enable/disable min & max angle limits.
-
#angular_limits_enabled? ⇒ Boolean
Determine whether min & max angle limits are enabled.
-
#cur_acceleration ⇒ Numeric
Get current linear acceleration in meters per second per second.
-
#cur_alpha ⇒ Numeric
Get current angular acceleration in radians per second per second.
-
#cur_angle ⇒ Numeric
Get current angle in radians.
-
#cur_omega ⇒ Numeric
Get current omega in radians per second.
-
#cur_position ⇒ Numeric
Get current position in meters.
-
#cur_velocity ⇒ Numeric
Get current velocity in meters per second.
-
#initialize(world, parent, pin_tra, group = nil) ⇒ Corkscrew
constructor
Create a corkscrew joint.
-
#linear_friction ⇒ Numeric
Get movement friction.
-
#linear_friction=(value) ⇒ Object
Set movement friction.
-
#linear_limits_enabled=(state) ⇒ Object
Enable/disable min and max position limits.
-
#linear_limits_enabled? ⇒ Boolean
Determine whether min and max position limits are enabled.
-
#max_angle ⇒ Numeric
Get maximum angle in radians.
-
#max_angle=(value) ⇒ Object
Set maximum angle in radians.
-
#max_position ⇒ Numeric
Get maximum position in meters.
-
#max_position=(value) ⇒ Object
Set maximum position in meters.
-
#min_angle ⇒ Numeric
Get minimum angle in radians.
-
#min_angle=(value) ⇒ Object
Set minimum angle in radians.
-
#min_position ⇒ Numeric
Get minimum position in meters.
-
#min_position=(value) ⇒ Object
Set minimum position in meters.
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) ⇒ Corkscrew
Create a corkscrew joint.
Instance Method Details
#angular_friction ⇒ Numeric
Get rotational friction.
#angular_friction=(value) ⇒ Object
Set rotational friction.
#angular_limits_enabled=(state) ⇒ Object
Enable/disable min & max angle limits.
#angular_limits_enabled? ⇒ Boolean
Determine whether min & max angle limits are enabled.
#cur_acceleration ⇒ Numeric
Get current linear acceleration in meters per second per second.
#cur_alpha ⇒ Numeric
Get current angular acceleration in radians per second per second.
#cur_angle ⇒ Numeric
Get current angle in radians.
#cur_omega ⇒ Numeric
Get current omega in radians per second.
#cur_position ⇒ Numeric
Get current position in meters.
#cur_velocity ⇒ Numeric
Get current velocity in meters per second.
#linear_friction ⇒ Numeric
Get movement friction.
#linear_friction=(value) ⇒ Object
Set movement friction.
#linear_limits_enabled=(state) ⇒ Object
Enable/disable min and max position limits.
#linear_limits_enabled? ⇒ Boolean
Determine whether min and max position limits are enabled.
#max_angle ⇒ Numeric
Get maximum angle in radians.
#max_angle=(value) ⇒ Object
Set maximum angle in radians.
#max_position ⇒ Numeric
Get maximum position in meters.
#max_position=(value) ⇒ Object
Set maximum position in meters.
#min_angle ⇒ Numeric
Get minimum angle in radians.
#min_angle=(value) ⇒ Object
Set minimum angle in radians.
#min_position ⇒ Numeric
Get minimum position in meters.
#min_position=(value) ⇒ Object
Set minimum position in meters.