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_, _maxContactPushSpeed_, _jointHertz_, _jointDampingRatio_, _maximumLinearSpeed_, _frictionCallback_, _restitutionCallback_, _enableSleep_, _enableContinuous_, _workerCount_, _enqueueTask_, _finishTask_, _userTaskContext_, _userData_, _internalValue_) ⇒ Object



297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
# File 'lib/box2d_types.rb', line 297

def self.create_as(_gravity_, _restitutionThreshold_, _hitEventThreshold_, _contactHertz_, _contactDampingRatio_, _maxContactPushSpeed_, _jointHertz_, _jointDampingRatio_, _maximumLinearSpeed_, _frictionCallback_, _restitutionCallback_, _enableSleep_, _enableContinuous_, _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[:maxContactPushSpeed] = _maxContactPushSpeed_
  instance[:jointHertz] = _jointHertz_
  instance[:jointDampingRatio] = _jointDampingRatio_
  instance[:maximumLinearSpeed] = _maximumLinearSpeed_
  instance[:frictionCallback] = _frictionCallback_
  instance[:restitutionCallback] = _restitutionCallback_
  instance[:enableSleep] = _enableSleep_
  instance[:enableContinuous] = _enableContinuous_
  instance[:workerCount] = _workerCount_
  instance[:enqueueTask] = _enqueueTask_
  instance[:finishTask] = _finishTask_
  instance[:userTaskContext] = _userTaskContext_
  instance[:userData] = _userData_
  instance[:internalValue] = _internalValue_
  instance
end

Instance Method Details

#contactDampingRatioObject



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

def contactDampingRatio = self[:contactDampingRatio]

#contactDampingRatio=(v) ⇒ Object



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

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

#contactHertzObject



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

def contactHertz = self[:contactHertz]

#contactHertz=(v) ⇒ Object



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

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

#enableContinuousObject



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

def enableContinuous = self[:enableContinuous]

#enableContinuous=(v) ⇒ Object



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

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

#enableSleepObject



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

def enableSleep = self[:enableSleep]

#enableSleep=(v) ⇒ Object



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

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

#enqueueTaskObject



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

def enqueueTask = self[:enqueueTask]

#enqueueTask=(v) ⇒ Object



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

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

#finishTaskObject



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

def finishTask = self[:finishTask]

#finishTask=(v) ⇒ Object



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

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

#frictionCallbackObject



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

def frictionCallback = self[:frictionCallback]

#frictionCallback=(v) ⇒ Object



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

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

#gravityObject



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

def gravity = self[:gravity]

#gravity=(v) ⇒ Object



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

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

#hitEventThresholdObject



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

def hitEventThreshold = self[:hitEventThreshold]

#hitEventThreshold=(v) ⇒ Object



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

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

#internalValueObject



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

def internalValue = self[:internalValue]

#internalValue=(v) ⇒ Object



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

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

#jointDampingRatioObject



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

def jointDampingRatio = self[:jointDampingRatio]

#jointDampingRatio=(v) ⇒ Object



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

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

#jointHertzObject



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

def jointHertz = self[:jointHertz]

#jointHertz=(v) ⇒ Object



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

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

#maxContactPushSpeedObject



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

def maxContactPushSpeed = self[:maxContactPushSpeed]

#maxContactPushSpeed=(v) ⇒ Object



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

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

#maximumLinearSpeedObject



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

def maximumLinearSpeed = self[:maximumLinearSpeed]

#maximumLinearSpeed=(v) ⇒ Object



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

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

#restitutionCallbackObject



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

def restitutionCallback = self[:restitutionCallback]

#restitutionCallback=(v) ⇒ Object



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

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

#restitutionThresholdObject



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

def restitutionThreshold = self[:restitutionThreshold]

#restitutionThreshold=(v) ⇒ Object



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

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

#userDataObject



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

def userData = self[:userData]

#userData=(v) ⇒ Object



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

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

#userTaskContextObject



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

def userTaskContext = self[:userTaskContext]

#userTaskContext=(v) ⇒ Object



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

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

#workerCountObject



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

def workerCount = self[:workerCount]

#workerCount=(v) ⇒ Object



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

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