Class: MSPhysics::PointToPoint
- Defined in:
- RubyExtension/MSPhysics/joint_point_to_point.rb
Overview
Constant Summary
- DEFAULT_ACCEL =
40.0- DEFAULT_DAMP =
0.1- DEFAULT_STRENGTH =
0.80- DEFAULT_MODE =
0- DEFAULT_START_DISTANCE =
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
-
#accel ⇒ Numeric
Get spring oscillation acceleration factor.
-
#accel=(value) ⇒ Object
Set spring oscillation acceleration factor.
-
#controller ⇒ Numeric
Get magnitude of the starting distance.
-
#controller=(value) ⇒ Object
Set magnitude of the starting distance.
-
#cur_distance ⇒ Numeric
Get current distance in meters with respect to the starting position.
-
#damp ⇒ Numeric
Get spring oscillation drag coefficient.
-
#damp=(value) ⇒ Object
Set spring oscillation drag coefficient.
-
#initialize(world, parent, pin_tra, group = nil) ⇒ PointToPoint
constructor
Create a PointToPoint joint.
-
#mode ⇒ Fixnum
Get mode.
-
#mode=(value) ⇒ Object
Set mode.
-
#start_distance ⇒ Numeric
Get starting distance in meters.
-
#start_distance=(value) ⇒ Object
Set starting distance in meters.
-
#strength ⇒ Numeric
Get spring strength coefficient.
-
#strength=(value) ⇒ Object
Set spring strength coefficient.
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) ⇒ PointToPoint
Create a PointToPoint joint.
Instance Method Details
#accel ⇒ Numeric
Get spring oscillation acceleration factor.
#accel=(value) ⇒ Object
Set spring oscillation acceleration factor.
#controller ⇒ Numeric
The actual, desired distance is, start_distance * controller.
Get magnitude of the starting distance.
#controller=(value) ⇒ Object
The actual, desired distance is, start_distance * controller.
Set magnitude of the starting distance.
#cur_distance ⇒ Numeric
Get current distance in meters with respect to the starting position.
#damp ⇒ Numeric
Get spring oscillation drag coefficient.
#damp=(value) ⇒ Object
Set spring oscillation drag coefficient.
#mode ⇒ Fixnum
Get mode.
#mode=(value) ⇒ Object
Set mode.
#start_distance ⇒ Numeric
The actual, desired distance is, start_distance * controller.
Get starting distance in meters.
#start_distance=(value) ⇒ Object
The actual, desired distance is, start_distance * controller.
Set starting distance in meters.
#strength ⇒ Numeric
Get spring strength coefficient.
#strength=(value) ⇒ Object
Set spring strength coefficient.