Class: Box2D::WeldJoint

Inherits:
Joint show all
Defined in:
lib/box2d/joint.rb

Constant Summary

Constants inherited from Joint

Joint::ID_CLASS

Instance Attribute Summary

Attributes inherited from Joint

#body_a, #body_b

Attributes inherited from Handle

#id, #world

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_angleObject



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