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(_base_, _enableSpring_, _hertz_, _dampingRatio_, _enableLimit_, _lowerTranslation_, _upperTranslation_, _enableMotor_, _maxMotorTorque_, _motorSpeed_, _internalValue_) ⇒ Object



1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
# File 'lib/box2d_types.rb', line 1130

def self.create_as(_base_, _enableSpring_, _hertz_, _dampingRatio_, _enableLimit_, _lowerTranslation_, _upperTranslation_, _enableMotor_, _maxMotorTorque_, _motorSpeed_, _internalValue_)
  instance = WheelJointDef.new
  instance[:base] = _base_
  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[:internalValue] = _internalValue_
  instance
end

Instance Method Details

#baseObject



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

def base = self[:base]

#base=(v) ⇒ Object



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

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

#dampingRatioObject



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

def dampingRatio = self[:dampingRatio]

#dampingRatio=(v) ⇒ Object



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

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

#enableLimitObject



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

def enableLimit = self[:enableLimit]

#enableLimit=(v) ⇒ Object



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

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

#enableMotorObject



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

def enableMotor = self[:enableMotor]

#enableMotor=(v) ⇒ Object



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

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

#enableSpringObject



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

def enableSpring = self[:enableSpring]

#enableSpring=(v) ⇒ Object



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

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

#hertzObject



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

def hertz = self[:hertz]

#hertz=(v) ⇒ Object



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

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

#internalValueObject



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

def internalValue = self[:internalValue]

#internalValue=(v) ⇒ Object



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

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

#lowerTranslationObject



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

def lowerTranslation = self[:lowerTranslation]

#lowerTranslation=(v) ⇒ Object



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

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

#maxMotorTorqueObject



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

def maxMotorTorque = self[:maxMotorTorque]

#maxMotorTorque=(v) ⇒ Object



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

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

#motorSpeedObject



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

def motorSpeed = self[:motorSpeed]

#motorSpeed=(v) ⇒ Object



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

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

#upperTranslationObject



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

def upperTranslation = self[:upperTranslation]

#upperTranslation=(v) ⇒ Object



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

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