Class: MSPhysics::JointConnectionTool
- Defined in:
- RubyExtension/MSPhysics/joint_connection_tool.rb
Overview
Class Method Summary collapse
-
.activate ⇒ Boolean
Activate joint connection tool.
-
.active? ⇒ Boolean
Determine whether joint connection tool is active.
-
.connect_joint_id(body, id) ⇒ Array<Fixnum>
Connect joint id to a group/component.
-
.deactivate ⇒ Boolean
Deactivate joint connection tool.
-
.disconnect_joint_id(body, id) ⇒ Array<Fixnum>
Connect joint id from a group/component.
-
.get_all_connections(consider_world) ⇒ Array<Array>
Get all joint connections.
-
.get_conections_from_data(fbdata, fjdata) ⇒ Object
Get all joint connections from connection data.
-
.get_connected_bodies(joint, joint_parent) ⇒ Array
Get all bodies connected to a joint.
-
.get_connected_joint_ids(body) ⇒ Array<Fixnum>
Get all joint ids connected to a group/component.
-
.get_connected_joints(body) ⇒ Array<Array>
Get all joints connected to a body.
-
.get_connection_data(consider_world) ⇒ Array<(Hash, Hash)>
Get all connection data.
-
.get_curve_length(joint, joint_parent, loop = false) ⇒ Numeric
Get curve length of a CurvySlider or a CurvyPiston joint.
-
.get_joints_by_id(joint_id) ⇒ Array
Get joint by its id.
-
.get_points_on_curve(joint, joint_parent) ⇒ Array<Geom::Point3d>
Get all points on a CurvySlider or a CurvyPiston joint.
-
.set_connected_joint_ids(body, ids) ⇒ Object
Set connected joint ids of a group/component.
-
.toggle_connect_joint_id(body, id) ⇒ Array<Fixnum>
Toggle connect joint id to a group/component.
Instance Method Summary collapse
-
#initialize ⇒ JointConnectionTool
constructor
class << self.
Methods inherited from Entity
Constructor Details
#initialize ⇒ JointConnectionTool
class << self
Class Method Details
.activate ⇒ Boolean
Activate joint connection tool.
.active? ⇒ Boolean
Determine whether joint connection tool is active.
.connect_joint_id(body, id) ⇒ Array<Fixnum>
Connect joint id to a group/component.
.deactivate ⇒ Boolean
Deactivate joint connection tool.
.disconnect_joint_id(body, id) ⇒ Array<Fixnum>
Manually wrap the operation.
Connect joint id from a group/component.
.get_all_connections(consider_world) ⇒ Array<Array>
Get all joint connections.
.get_conections_from_data(fbdata, fjdata) ⇒ Object
Get all joint connections from connection data.
.get_connected_bodies(joint, joint_parent) ⇒ Array
Get all bodies connected to a joint.
.get_connected_joint_ids(body) ⇒ Array<Fixnum>
Get all joint ids connected to a group/component.
.get_connected_joints(body) ⇒ Array<Array>
Get all joints connected to a body.
.get_connection_data(consider_world) ⇒ Array<(Hash, Hash)>
Get all connection data.
.get_curve_length(joint, joint_parent, loop = false) ⇒ Numeric
Get curve length of a CurvySlider or a CurvyPiston joint.
.get_joints_by_id(joint_id) ⇒ Array
Get joint by its id.
.get_points_on_curve(joint, joint_parent) ⇒ Array<Geom::Point3d>
Get all points on a CurvySlider or a CurvyPiston joint.
.set_connected_joint_ids(body, ids) ⇒ Object
Set connected joint ids of a group/component.
.toggle_connect_joint_id(body, id) ⇒ Array<Fixnum>
Manually wrap the operation.
Toggle connect joint id to a group/component.