Class: Box2D::PrismaticJointDef
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Box2D::PrismaticJointDef
- Defined in:
- lib/box2d_types.rb
Class Method Summary collapse
Instance Method Summary collapse
- #base ⇒ Object
- #base=(v) ⇒ Object
- #dampingRatio ⇒ Object
- #dampingRatio=(v) ⇒ Object
- #enableLimit ⇒ Object
- #enableLimit=(v) ⇒ Object
- #enableMotor ⇒ Object
- #enableMotor=(v) ⇒ Object
- #enableSpring ⇒ Object
- #enableSpring=(v) ⇒ Object
- #hertz ⇒ Object
- #hertz=(v) ⇒ Object
- #internalValue ⇒ Object
- #internalValue=(v) ⇒ Object
- #lowerTranslation ⇒ Object
- #lowerTranslation=(v) ⇒ Object
- #maxMotorForce ⇒ Object
- #maxMotorForce=(v) ⇒ Object
- #motorSpeed ⇒ Object
- #motorSpeed=(v) ⇒ Object
- #targetTranslation ⇒ Object
- #targetTranslation=(v) ⇒ Object
- #upperTranslation ⇒ Object
- #upperTranslation=(v) ⇒ Object
Class Method Details
.create_as(_base_, _enableSpring_, _hertz_, _dampingRatio_, _targetTranslation_, _enableLimit_, _lowerTranslation_, _upperTranslation_, _enableMotor_, _maxMotorForce_, _motorSpeed_, _internalValue_) ⇒ Object
980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 |
# File 'lib/box2d_types.rb', line 980 def self.create_as(_base_, _enableSpring_, _hertz_, _dampingRatio_, _targetTranslation_, _enableLimit_, _lowerTranslation_, _upperTranslation_, _enableMotor_, _maxMotorForce_, _motorSpeed_, _internalValue_) instance = PrismaticJointDef.new instance[:base] = _base_ instance[:enableSpring] = _enableSpring_ instance[:hertz] = _hertz_ instance[:dampingRatio] = _dampingRatio_ instance[:targetTranslation] = _targetTranslation_ instance[:enableLimit] = _enableLimit_ instance[:lowerTranslation] = _lowerTranslation_ instance[:upperTranslation] = _upperTranslation_ instance[:enableMotor] = _enableMotor_ instance[:maxMotorForce] = _maxMotorForce_ instance[:motorSpeed] = _motorSpeed_ instance[:internalValue] = _internalValue_ instance end |
Instance Method Details
#base ⇒ Object
956 |
# File 'lib/box2d_types.rb', line 956 def base = self[:base] |
#base=(v) ⇒ Object
957 |
# File 'lib/box2d_types.rb', line 957 def base=(v) self[:base] = v end |
#dampingRatio ⇒ Object
962 |
# File 'lib/box2d_types.rb', line 962 def dampingRatio = self[:dampingRatio] |
#dampingRatio=(v) ⇒ Object
963 |
# File 'lib/box2d_types.rb', line 963 def dampingRatio=(v) self[:dampingRatio] = v end |
#enableLimit ⇒ Object
966 |
# File 'lib/box2d_types.rb', line 966 def enableLimit = self[:enableLimit] |
#enableLimit=(v) ⇒ Object
967 |
# File 'lib/box2d_types.rb', line 967 def enableLimit=(v) self[:enableLimit] = v end |
#enableMotor ⇒ Object
972 |
# File 'lib/box2d_types.rb', line 972 def enableMotor = self[:enableMotor] |
#enableMotor=(v) ⇒ Object
973 |
# File 'lib/box2d_types.rb', line 973 def enableMotor=(v) self[:enableMotor] = v end |
#enableSpring ⇒ Object
958 |
# File 'lib/box2d_types.rb', line 958 def enableSpring = self[:enableSpring] |
#enableSpring=(v) ⇒ Object
959 |
# File 'lib/box2d_types.rb', line 959 def enableSpring=(v) self[:enableSpring] = v end |
#hertz ⇒ Object
960 |
# File 'lib/box2d_types.rb', line 960 def hertz = self[:hertz] |
#hertz=(v) ⇒ Object
961 |
# File 'lib/box2d_types.rb', line 961 def hertz=(v) self[:hertz] = v end |
#internalValue ⇒ Object
978 |
# File 'lib/box2d_types.rb', line 978 def internalValue = self[:internalValue] |
#internalValue=(v) ⇒ Object
979 |
# File 'lib/box2d_types.rb', line 979 def internalValue=(v) self[:internalValue] = v end |
#lowerTranslation ⇒ Object
968 |
# File 'lib/box2d_types.rb', line 968 def lowerTranslation = self[:lowerTranslation] |
#lowerTranslation=(v) ⇒ Object
969 |
# File 'lib/box2d_types.rb', line 969 def lowerTranslation=(v) self[:lowerTranslation] = v end |
#maxMotorForce ⇒ Object
974 |
# File 'lib/box2d_types.rb', line 974 def maxMotorForce = self[:maxMotorForce] |
#maxMotorForce=(v) ⇒ Object
975 |
# File 'lib/box2d_types.rb', line 975 def maxMotorForce=(v) self[:maxMotorForce] = v end |
#motorSpeed ⇒ Object
976 |
# File 'lib/box2d_types.rb', line 976 def motorSpeed = self[:motorSpeed] |
#motorSpeed=(v) ⇒ Object
977 |
# File 'lib/box2d_types.rb', line 977 def motorSpeed=(v) self[:motorSpeed] = v end |
#targetTranslation ⇒ Object
964 |
# File 'lib/box2d_types.rb', line 964 def targetTranslation = self[:targetTranslation] |
#targetTranslation=(v) ⇒ Object
965 |
# File 'lib/box2d_types.rb', line 965 def targetTranslation=(v) self[:targetTranslation] = v end |
#upperTranslation ⇒ Object
970 |
# File 'lib/box2d_types.rb', line 970 def upperTranslation = self[:upperTranslation] |
#upperTranslation=(v) ⇒ Object
971 |
# File 'lib/box2d_types.rb', line 971 def upperTranslation=(v) self[:upperTranslation] = v end |