Class: Box2D::WheelJointDef

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_, _localAxisA_, _enableSpring_, _hertz_, _dampingRatio_, _enableLimit_, _lowerTranslation_, _upperTranslation_, _enableMotor_, _maxMotorTorque_, _motorSpeed_, _collideConnected_, _userData_, _internalValue_) ⇒ Object



1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
# File 'lib/box2d_types.rb', line 1195

def self.create_as(_bodyIdA_, _bodyIdB_, _localAnchorA_, _localAnchorB_, _localAxisA_, _enableSpring_, _hertz_, _dampingRatio_, _enableLimit_, _lowerTranslation_, _upperTranslation_, _enableMotor_, _maxMotorTorque_, _motorSpeed_, _collideConnected_, _userData_, _internalValue_)
  instance = WheelJointDef.new
  instance[:bodyIdA] = _bodyIdA_
  instance[:bodyIdB] = _bodyIdB_
  instance[:localAnchorA] = _localAnchorA_
  instance[:localAnchorB] = _localAnchorB_
  instance[:localAxisA] = _localAxisA_
  instance[:enableSpring] = _enableSpring_
  instance[:hertz] = _hertz_
  instance[:dampingRatio] = _dampingRatio_
  instance[:enableLimit] = _enableLimit_
  instance[:lowerTranslation] = _lowerTranslation_
  instance[:upperTranslation] = _upperTranslation_
  instance[:enableMotor] = _enableMotor_
  instance[:maxMotorTorque] = _maxMotorTorque_
  instance[:motorSpeed] = _motorSpeed_
  instance[:collideConnected] = _collideConnected_
  instance[:userData] = _userData_
  instance[:internalValue] = _internalValue_
  instance
end

Instance Method Details

#bodyIdAObject



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

def bodyIdA = self[:bodyIdA]

#bodyIdA=(v) ⇒ Object



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

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

#bodyIdBObject



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

def bodyIdB = self[:bodyIdB]

#bodyIdB=(v) ⇒ Object



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

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

#collideConnectedObject



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

def collideConnected = self[:collideConnected]

#collideConnected=(v) ⇒ Object



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

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

#dampingRatioObject



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

def dampingRatio = self[:dampingRatio]

#dampingRatio=(v) ⇒ Object



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

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

#enableLimitObject



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

def enableLimit = self[:enableLimit]

#enableLimit=(v) ⇒ Object



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

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

#enableMotorObject



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

def enableMotor = self[:enableMotor]

#enableMotor=(v) ⇒ Object



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

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

#enableSpringObject



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

def enableSpring = self[:enableSpring]

#enableSpring=(v) ⇒ Object



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

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

#hertzObject



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

def hertz = self[:hertz]

#hertz=(v) ⇒ Object



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

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

#internalValueObject



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

def internalValue = self[:internalValue]

#internalValue=(v) ⇒ Object



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

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

#localAnchorAObject



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

def localAnchorA = self[:localAnchorA]

#localAnchorA=(v) ⇒ Object



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

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

#localAnchorBObject



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

def localAnchorB = self[:localAnchorB]

#localAnchorB=(v) ⇒ Object



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

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

#localAxisAObject



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

def localAxisA = self[:localAxisA]

#localAxisA=(v) ⇒ Object



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

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

#lowerTranslationObject



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

def lowerTranslation = self[:lowerTranslation]

#lowerTranslation=(v) ⇒ Object



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

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

#maxMotorTorqueObject



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

def maxMotorTorque = self[:maxMotorTorque]

#maxMotorTorque=(v) ⇒ Object



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

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

#motorSpeedObject



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

def motorSpeed = self[:motorSpeed]

#motorSpeed=(v) ⇒ Object



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

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

#upperTranslationObject



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

def upperTranslation = self[:upperTranslation]

#upperTranslation=(v) ⇒ Object



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

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

#userDataObject



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

def userData = self[:userData]

#userData=(v) ⇒ Object



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

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