Class: Box2D::RevoluteJointDef

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/box2d_types.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.create_as(_bodyIdA_, _bodyIdB_, _localAnchorA_, _localAnchorB_, _referenceAngle_, _enableSpring_, _hertz_, _dampingRatio_, _enableLimit_, _lowerAngle_, _upperAngle_, _enableMotor_, _maxMotorTorque_, _motorSpeed_, _drawSize_, _collideConnected_, _userData_, _internalValue_) ⇒ Object



1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
# File 'lib/box2d_types.rb', line 1071

def self.create_as(_bodyIdA_, _bodyIdB_, _localAnchorA_, _localAnchorB_, _referenceAngle_, _enableSpring_, _hertz_, _dampingRatio_, _enableLimit_, _lowerAngle_, _upperAngle_, _enableMotor_, _maxMotorTorque_, _motorSpeed_, _drawSize_, _collideConnected_, _userData_, _internalValue_)
  instance = RevoluteJointDef.new
  instance[:bodyIdA] = _bodyIdA_
  instance[:bodyIdB] = _bodyIdB_
  instance[:localAnchorA] = _localAnchorA_
  instance[:localAnchorB] = _localAnchorB_
  instance[:referenceAngle] = _referenceAngle_
  instance[:enableSpring] = _enableSpring_
  instance[:hertz] = _hertz_
  instance[:dampingRatio] = _dampingRatio_
  instance[:enableLimit] = _enableLimit_
  instance[:lowerAngle] = _lowerAngle_
  instance[:upperAngle] = _upperAngle_
  instance[:enableMotor] = _enableMotor_
  instance[:maxMotorTorque] = _maxMotorTorque_
  instance[:motorSpeed] = _motorSpeed_
  instance[:drawSize] = _drawSize_
  instance[:collideConnected] = _collideConnected_
  instance[:userData] = _userData_
  instance[:internalValue] = _internalValue_
  instance
end

Instance Method Details

#bodyIdAObject



1035
# File 'lib/box2d_types.rb', line 1035

def bodyIdA = self[:bodyIdA]

#bodyIdA=(v) ⇒ Object



1036
# File 'lib/box2d_types.rb', line 1036

def bodyIdA=(v) self[:bodyIdA] = v end

#bodyIdBObject



1037
# File 'lib/box2d_types.rb', line 1037

def bodyIdB = self[:bodyIdB]

#bodyIdB=(v) ⇒ Object



1038
# File 'lib/box2d_types.rb', line 1038

def bodyIdB=(v) self[:bodyIdB] = v end

#collideConnectedObject



1065
# File 'lib/box2d_types.rb', line 1065

def collideConnected = self[:collideConnected]

#collideConnected=(v) ⇒ Object



1066
# File 'lib/box2d_types.rb', line 1066

def collideConnected=(v) self[:collideConnected] = v end

#dampingRatioObject



1049
# File 'lib/box2d_types.rb', line 1049

def dampingRatio = self[:dampingRatio]

#dampingRatio=(v) ⇒ Object



1050
# File 'lib/box2d_types.rb', line 1050

def dampingRatio=(v) self[:dampingRatio] = v end

#drawSizeObject



1063
# File 'lib/box2d_types.rb', line 1063

def drawSize = self[:drawSize]

#drawSize=(v) ⇒ Object



1064
# File 'lib/box2d_types.rb', line 1064

def drawSize=(v) self[:drawSize] = v end

#enableLimitObject



1051
# File 'lib/box2d_types.rb', line 1051

def enableLimit = self[:enableLimit]

#enableLimit=(v) ⇒ Object



1052
# File 'lib/box2d_types.rb', line 1052

def enableLimit=(v) self[:enableLimit] = v end

#enableMotorObject



1057
# File 'lib/box2d_types.rb', line 1057

def enableMotor = self[:enableMotor]

#enableMotor=(v) ⇒ Object



1058
# File 'lib/box2d_types.rb', line 1058

def enableMotor=(v) self[:enableMotor] = v end

#enableSpringObject



1045
# File 'lib/box2d_types.rb', line 1045

def enableSpring = self[:enableSpring]

#enableSpring=(v) ⇒ Object



1046
# File 'lib/box2d_types.rb', line 1046

def enableSpring=(v) self[:enableSpring] = v end

#hertzObject



1047
# File 'lib/box2d_types.rb', line 1047

def hertz = self[:hertz]

#hertz=(v) ⇒ Object



1048
# File 'lib/box2d_types.rb', line 1048

def hertz=(v) self[:hertz] = v end

#internalValueObject



1069
# File 'lib/box2d_types.rb', line 1069

def internalValue = self[:internalValue]

#internalValue=(v) ⇒ Object



1070
# File 'lib/box2d_types.rb', line 1070

def internalValue=(v) self[:internalValue] = v end

#localAnchorAObject



1039
# File 'lib/box2d_types.rb', line 1039

def localAnchorA = self[:localAnchorA]

#localAnchorA=(v) ⇒ Object



1040
# File 'lib/box2d_types.rb', line 1040

def localAnchorA=(v) self[:localAnchorA] = v end

#localAnchorBObject



1041
# File 'lib/box2d_types.rb', line 1041

def localAnchorB = self[:localAnchorB]

#localAnchorB=(v) ⇒ Object



1042
# File 'lib/box2d_types.rb', line 1042

def localAnchorB=(v) self[:localAnchorB] = v end

#lowerAngleObject



1053
# File 'lib/box2d_types.rb', line 1053

def lowerAngle = self[:lowerAngle]

#lowerAngle=(v) ⇒ Object



1054
# File 'lib/box2d_types.rb', line 1054

def lowerAngle=(v) self[:lowerAngle] = v end

#maxMotorTorqueObject



1059
# File 'lib/box2d_types.rb', line 1059

def maxMotorTorque = self[:maxMotorTorque]

#maxMotorTorque=(v) ⇒ Object



1060
# File 'lib/box2d_types.rb', line 1060

def maxMotorTorque=(v) self[:maxMotorTorque] = v end

#motorSpeedObject



1061
# File 'lib/box2d_types.rb', line 1061

def motorSpeed = self[:motorSpeed]

#motorSpeed=(v) ⇒ Object



1062
# File 'lib/box2d_types.rb', line 1062

def motorSpeed=(v) self[:motorSpeed] = v end

#referenceAngleObject



1043
# File 'lib/box2d_types.rb', line 1043

def referenceAngle = self[:referenceAngle]

#referenceAngle=(v) ⇒ Object



1044
# File 'lib/box2d_types.rb', line 1044

def referenceAngle=(v) self[:referenceAngle] = v end

#upperAngleObject



1055
# File 'lib/box2d_types.rb', line 1055

def upperAngle = self[:upperAngle]

#upperAngle=(v) ⇒ Object



1056
# File 'lib/box2d_types.rb', line 1056

def upperAngle=(v) self[:upperAngle] = v end

#userDataObject



1067
# File 'lib/box2d_types.rb', line 1067

def userData = self[:userData]

#userData=(v) ⇒ Object



1068
# File 'lib/box2d_types.rb', line 1068

def userData=(v) self[:userData] = v end