Class: Box2D::WeldJoint
Constant Summary
Constants inherited from Joint
Instance Attribute Summary
Attributes inherited from Joint
Attributes inherited from Handle
Instance Method Summary collapse
Methods inherited from Joint
#collide_connected=, #collide_connected?, #constraint_force, #constraint_torque, #destroy, #initialize, #invalidate_from_body!, #user_data, #user_data=
Methods inherited from Handle
#destroyed?, #eql?, #hash, #initialize, #valid?
Constructor Details
This class inherits a constructor from Box2D::Joint
Instance Method Details
#reference_angle ⇒ Object
187 188 189 190 |
# File 'lib/box2d/joint.rb', line 187 def reference_angle ensure_valid! Native.b2WeldJoint_GetReferenceAngle(@id) end |
#reference_angle=(value) ⇒ Object
192 193 194 195 |
# File 'lib/box2d/joint.rb', line 192 def reference_angle=(value) ensure_valid! Native.b2WeldJoint_SetReferenceAngle(@id, ValueConversion.finite_float(value, label: "reference_angle")) end |