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



1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
# File 'lib/box2d_types.rb', line 1124

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



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

def base = self[:base]

#base=(v) ⇒ Object



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

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

#dampingRatioObject



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

def dampingRatio = self[:dampingRatio]

#dampingRatio=(v) ⇒ Object



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

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

#enableLimitObject



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

def enableLimit = self[:enableLimit]

#enableLimit=(v) ⇒ Object



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

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

#enableMotorObject



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

def enableMotor = self[:enableMotor]

#enableMotor=(v) ⇒ Object



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

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

#enableSpringObject



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

def enableSpring = self[:enableSpring]

#enableSpring=(v) ⇒ Object



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

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

#hertzObject



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

def hertz = self[:hertz]

#hertz=(v) ⇒ Object



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

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

#internalValueObject



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

def internalValue = self[:internalValue]

#internalValue=(v) ⇒ Object



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

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

#lowerTranslationObject



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

def lowerTranslation = self[:lowerTranslation]

#lowerTranslation=(v) ⇒ Object



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

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

#maxMotorTorqueObject



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

def maxMotorTorque = self[:maxMotorTorque]

#maxMotorTorque=(v) ⇒ Object



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

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

#motorSpeedObject



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

def motorSpeed = self[:motorSpeed]

#motorSpeed=(v) ⇒ Object



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

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

#upperTranslationObject



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

def upperTranslation = self[:upperTranslation]

#upperTranslation=(v) ⇒ Object



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

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