Class: MSPhysics::Plane
- Defined in:
- RubyExtension/MSPhysics/joint_plane.rb
Overview
Constant Summary
- DEFAULT_LINEAR_FRICTION =
0.0- DEFAULT_ANGULAR_FRICTION =
0.0- DEFAULT_ROTATION_ENABLED =
false
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 rotation friction.
-
#angular_friction=(value) ⇒ Object
Set rotation friction.
-
#initialize(world, parent, pin_tra, group = nil) ⇒ Plane
constructor
Create a plane joint.
-
#linear_friction ⇒ Numeric
Get movement friction.
-
#linear_friction=(value) ⇒ Object
Set movement friction.
-
#rotation_enabled=(state) ⇒ Object
Enable/disable the rotation along the connected body's center of mass and the plane's Z-axis.
-
#rotation_enabled? ⇒ Boolean
Determine whether the rotation along the connected body's center of mass and the plane's Z-axis is enabled.
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) ⇒ Plane
Create a plane joint.
Instance Method Details
#angular_friction ⇒ Numeric
Get rotation friction.
#angular_friction=(value) ⇒ Object
Set rotation friction.
#linear_friction ⇒ Numeric
Get movement friction.
#linear_friction=(value) ⇒ Object
Set movement friction.
#rotation_enabled=(state) ⇒ Object
Enable/disable the rotation along the connected body's center of mass and the plane's Z-axis.
#rotation_enabled? ⇒ Boolean
Determine whether the rotation along the connected body's center of mass and the plane's Z-axis is enabled.