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



1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
# File 'lib/box2d_types.rb', line 1060

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



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

def bodyIdA = self[:bodyIdA]

#bodyIdA=(v) ⇒ Object



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

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

#bodyIdBObject



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

def bodyIdB = self[:bodyIdB]

#bodyIdB=(v) ⇒ Object



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

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

#collideConnectedObject



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

def collideConnected = self[:collideConnected]

#collideConnected=(v) ⇒ Object



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

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

#dampingRatioObject



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

def dampingRatio = self[:dampingRatio]

#dampingRatio=(v) ⇒ Object



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

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

#drawSizeObject



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

def drawSize = self[:drawSize]

#drawSize=(v) ⇒ Object



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

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

#enableLimitObject



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

def enableLimit = self[:enableLimit]

#enableLimit=(v) ⇒ Object



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

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

#enableMotorObject



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

def enableMotor = self[:enableMotor]

#enableMotor=(v) ⇒ Object



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

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

#enableSpringObject



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

def enableSpring = self[:enableSpring]

#enableSpring=(v) ⇒ Object



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

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

#hertzObject



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

def hertz = self[:hertz]

#hertz=(v) ⇒ Object



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

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

#internalValueObject



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

def internalValue = self[:internalValue]

#internalValue=(v) ⇒ Object



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

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

#localAnchorAObject



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

def localAnchorA = self[:localAnchorA]

#localAnchorA=(v) ⇒ Object



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

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

#localAnchorBObject



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

def localAnchorB = self[:localAnchorB]

#localAnchorB=(v) ⇒ Object



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

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

#lowerAngleObject



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

def lowerAngle = self[:lowerAngle]

#lowerAngle=(v) ⇒ Object



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

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

#maxMotorTorqueObject



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

def maxMotorTorque = self[:maxMotorTorque]

#maxMotorTorque=(v) ⇒ Object



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

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

#motorSpeedObject



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

def motorSpeed = self[:motorSpeed]

#motorSpeed=(v) ⇒ Object



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

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

#referenceAngleObject



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

def referenceAngle = self[:referenceAngle]

#referenceAngle=(v) ⇒ Object



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

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

#upperAngleObject



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

def upperAngle = self[:upperAngle]

#upperAngle=(v) ⇒ Object



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

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

#userDataObject



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

def userData = self[:userData]

#userData=(v) ⇒ Object



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

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