DIFF

class PhysicsBlockSource

Methods 2

static proto PhysicsBlock Create(notnull IEntity ent1, notnull IEntity ent2)

Disables collisions between two entities by creating PhysicsBlock. Both entities must exist in the same world. Block must be removed manually on cleanup.

ent1
Entity of the non-colliding pair
ent2
Other entity of the non-colliding pair

Returns: PhysicsBlock disabling collision while it exists

proto external void Remove(notnull IEntity worldEntity)

Enables collisions between two entities by removing PhysicsBlock.

worldEntity
Entity used to obtain world in which entities exist