Class: Box2D::ShapeDef

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(_userData_, _material_, _density_, _filter_, _isSensor_, _enableSensorEvents_, _enableContactEvents_, _enableHitEvents_, _enablePreSolveEvents_, _invokeContactCreation_, _updateBodyMass_, _internalValue_) ⇒ Object



505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
# File 'lib/box2d_types.rb', line 505

def self.create_as(_userData_, _material_, _density_, _filter_, _isSensor_, _enableSensorEvents_, _enableContactEvents_, _enableHitEvents_, _enablePreSolveEvents_, _invokeContactCreation_, _updateBodyMass_, _internalValue_)
  instance = ShapeDef.new
  instance[:userData] = _userData_
  instance[:material] = _material_
  instance[:density] = _density_
  instance[:filter] = _filter_
  instance[:isSensor] = _isSensor_
  instance[:enableSensorEvents] = _enableSensorEvents_
  instance[:enableContactEvents] = _enableContactEvents_
  instance[:enableHitEvents] = _enableHitEvents_
  instance[:enablePreSolveEvents] = _enablePreSolveEvents_
  instance[:invokeContactCreation] = _invokeContactCreation_
  instance[:updateBodyMass] = _updateBodyMass_
  instance[:internalValue] = _internalValue_
  instance
end

Instance Method Details

#densityObject



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

def density = self[:density]

#density=(v) ⇒ Object



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

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

#enableContactEventsObject



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

def enableContactEvents = self[:enableContactEvents]

#enableContactEvents=(v) ⇒ Object



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

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

#enableHitEventsObject



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

def enableHitEvents = self[:enableHitEvents]

#enableHitEvents=(v) ⇒ Object



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

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

#enablePreSolveEventsObject



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

def enablePreSolveEvents = self[:enablePreSolveEvents]

#enablePreSolveEvents=(v) ⇒ Object



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

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

#enableSensorEventsObject



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

def enableSensorEvents = self[:enableSensorEvents]

#enableSensorEvents=(v) ⇒ Object



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

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

#filterObject



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

def filter = self[:filter]

#filter=(v) ⇒ Object



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

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

#internalValueObject



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

def internalValue = self[:internalValue]

#internalValue=(v) ⇒ Object



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

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

#invokeContactCreationObject



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

def invokeContactCreation = self[:invokeContactCreation]

#invokeContactCreation=(v) ⇒ Object



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

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

#isSensorObject



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

def isSensor = self[:isSensor]

#isSensor=(v) ⇒ Object



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

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

#materialObject



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

def material = self[:material]

#material=(v) ⇒ Object



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

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

#updateBodyMassObject



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

def updateBodyMass = self[:updateBodyMass]

#updateBodyMass=(v) ⇒ Object



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

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

#userDataObject



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

def userData = self[:userData]

#userData=(v) ⇒ Object



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

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