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



1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
# File 'lib/box2d_types.rb', line 1038

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



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

def bodyIdA = self[:bodyIdA]

#bodyIdA=(v) ⇒ Object



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

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

#bodyIdBObject



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

def bodyIdB = self[:bodyIdB]

#bodyIdB=(v) ⇒ Object



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

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

#collideConnectedObject



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

def collideConnected = self[:collideConnected]

#collideConnected=(v) ⇒ Object



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

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

#dampingRatioObject



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

def dampingRatio = self[:dampingRatio]

#dampingRatio=(v) ⇒ Object



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

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

#drawSizeObject



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

def drawSize = self[:drawSize]

#drawSize=(v) ⇒ Object



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

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

#enableLimitObject



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

def enableLimit = self[:enableLimit]

#enableLimit=(v) ⇒ Object



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

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

#enableMotorObject



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

def enableMotor = self[:enableMotor]

#enableMotor=(v) ⇒ Object



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

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

#enableSpringObject



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

def enableSpring = self[:enableSpring]

#enableSpring=(v) ⇒ Object



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

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

#hertzObject



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

def hertz = self[:hertz]

#hertz=(v) ⇒ Object



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

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

#internalValueObject



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

def internalValue = self[:internalValue]

#internalValue=(v) ⇒ Object



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

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

#localAnchorAObject



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

def localAnchorA = self[:localAnchorA]

#localAnchorA=(v) ⇒ Object



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

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

#localAnchorBObject



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

def localAnchorB = self[:localAnchorB]

#localAnchorB=(v) ⇒ Object



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

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

#lowerAngleObject



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

def lowerAngle = self[:lowerAngle]

#lowerAngle=(v) ⇒ Object



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

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

#maxMotorTorqueObject



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

def maxMotorTorque = self[:maxMotorTorque]

#maxMotorTorque=(v) ⇒ Object



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

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

#motorSpeedObject



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

def motorSpeed = self[:motorSpeed]

#motorSpeed=(v) ⇒ Object



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

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

#referenceAngleObject



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

def referenceAngle = self[:referenceAngle]

#referenceAngle=(v) ⇒ Object



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

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

#upperAngleObject



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

def upperAngle = self[:upperAngle]

#upperAngle=(v) ⇒ Object



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

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

#userDataObject



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

def userData = self[:userData]

#userData=(v) ⇒ Object



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

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