Enfusion Script API
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
PhysicsBlock Interface Reference

Disables collisions between two entities. More...

Inheritance diagram for PhysicsBlock:
[legend]

Public Member Functions

proto external void Remove (notnull IEntity worldEntity)
 Enables collisions between two entities by removing PhysicsBlock.
 
- Public Member Functions inherited from pointer
proto string ToString ()
 

Static Public Member Functions

static proto PhysicsBlock Create (notnull IEntity ent1, notnull IEntity ent2)
 Disables collisions between two entities by creating PhysicsBlock.
 

Detailed Description

Disables collisions between two entities.

Member Function Documentation

◆ Create()

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

Disables collisions between two entities by creating PhysicsBlock.

Both entities must exist in the same world. Block must be removed manually on cleanup.

Parameters
ent1Entity of the non-colliding pair
ent2Other entity of the non-colliding pair
Returns
PhysicsBlock disabling collision while it exists

◆ Remove()

proto external void PhysicsBlock.Remove ( notnull IEntity  worldEntity)

Enables collisions between two entities by removing PhysicsBlock.

Parameters
worldEntityEntity used to obtain world in which entities exist

The documentation for this interface was generated from the following file: