Class: Box2D::WorldDef

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(_gravity_, _restitutionThreshold_, _hitEventThreshold_, _contactHertz_, _contactDampingRatio_, _contactSpeed_, _maximumLinearSpeed_, _frictionCallback_, _restitutionCallback_, _enableSleep_, _enableContinuous_, _enableContactSoftening_, _workerCount_, _enqueueTask_, _finishTask_, _userTaskContext_, _userData_, _internalValue_) ⇒ Object



292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
# File 'lib/box2d_types.rb', line 292

def self.create_as(_gravity_, _restitutionThreshold_, _hitEventThreshold_, _contactHertz_, _contactDampingRatio_, _contactSpeed_, _maximumLinearSpeed_, _frictionCallback_, _restitutionCallback_, _enableSleep_, _enableContinuous_, _enableContactSoftening_, _workerCount_, _enqueueTask_, _finishTask_, _userTaskContext_, _userData_, _internalValue_)
  instance = WorldDef.new
  instance[:gravity] = _gravity_
  instance[:restitutionThreshold] = _restitutionThreshold_
  instance[:hitEventThreshold] = _hitEventThreshold_
  instance[:contactHertz] = _contactHertz_
  instance[:contactDampingRatio] = _contactDampingRatio_
  instance[:contactSpeed] = _contactSpeed_
  instance[:maximumLinearSpeed] = _maximumLinearSpeed_
  instance[:frictionCallback] = _frictionCallback_
  instance[:restitutionCallback] = _restitutionCallback_
  instance[:enableSleep] = _enableSleep_
  instance[:enableContinuous] = _enableContinuous_
  instance[:enableContactSoftening] = _enableContactSoftening_
  instance[:workerCount] = _workerCount_
  instance[:enqueueTask] = _enqueueTask_
  instance[:finishTask] = _finishTask_
  instance[:userTaskContext] = _userTaskContext_
  instance[:userData] = _userData_
  instance[:internalValue] = _internalValue_
  instance
end

Instance Method Details

#contactDampingRatioObject



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

def contactDampingRatio = self[:contactDampingRatio]

#contactDampingRatio=(v) ⇒ Object



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

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

#contactHertzObject



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

def contactHertz = self[:contactHertz]

#contactHertz=(v) ⇒ Object



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

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

#contactSpeedObject



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

def contactSpeed = self[:contactSpeed]

#contactSpeed=(v) ⇒ Object



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

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

#enableContactSofteningObject



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

def enableContactSoftening = self[:enableContactSoftening]

#enableContactSoftening=(v) ⇒ Object



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

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

#enableContinuousObject



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

def enableContinuous = self[:enableContinuous]

#enableContinuous=(v) ⇒ Object



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

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

#enableSleepObject



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

def enableSleep = self[:enableSleep]

#enableSleep=(v) ⇒ Object



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

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

#enqueueTaskObject



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

def enqueueTask = self[:enqueueTask]

#enqueueTask=(v) ⇒ Object



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

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

#finishTaskObject



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

def finishTask = self[:finishTask]

#finishTask=(v) ⇒ Object



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

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

#frictionCallbackObject



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

def frictionCallback = self[:frictionCallback]

#frictionCallback=(v) ⇒ Object



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

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

#gravityObject



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

def gravity = self[:gravity]

#gravity=(v) ⇒ Object



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

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

#hitEventThresholdObject



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

def hitEventThreshold = self[:hitEventThreshold]

#hitEventThreshold=(v) ⇒ Object



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

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

#internalValueObject



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

def internalValue = self[:internalValue]

#internalValue=(v) ⇒ Object



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

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

#maximumLinearSpeedObject



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

def maximumLinearSpeed = self[:maximumLinearSpeed]

#maximumLinearSpeed=(v) ⇒ Object



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

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

#restitutionCallbackObject



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

def restitutionCallback = self[:restitutionCallback]

#restitutionCallback=(v) ⇒ Object



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

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

#restitutionThresholdObject



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

def restitutionThreshold = self[:restitutionThreshold]

#restitutionThreshold=(v) ⇒ Object



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

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

#userDataObject



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

def userData = self[:userData]

#userData=(v) ⇒ Object



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

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

#userTaskContextObject



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

def userTaskContext = self[:userTaskContext]

#userTaskContext=(v) ⇒ Object



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

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

#workerCountObject



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

def workerCount = self[:workerCount]

#workerCount=(v) ⇒ Object



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

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