Core API Reference: World Collision Category

From Color Infection Wiki

Jump to: navigation, search


Contents


= (Assign Collision Category)

Assign a collision category.

Input Parameters:

Source Collision Category
source

Output Parameters:

Target Collision Category
target
=? (Condition Assign Collision Category)

Assign a collision category conditionally.

Input Parameters:

Condition Result
the condition result
Collision Category 1
source 1
Collision Category 2
source 2

Output Parameters:

Target Collision Category
target
Swap CCat Values

Swap two ccat values. The parameters shouldn't be direct values. If direct values are passed as parameters, their values will be always not changed.

Input Parameters:

CCat 1
one ccat value
CCat 2
another ccat value

Output Parameters:

(none)
CCat 1 == CCat 2?

Whether or not two ccats are equal.

Input Parameters:

CCat 1
one ccat
CCat 2
another ccat

Output Parameters:

Result
the result
Collision Category 1 == Collision Category 2

Whether or not two collision category values represent the same collision category.

Input Parameters:

CCat 1
one collision category value
CCat 2
another collision category value

Output Parameters:

Result
the result
Collision Category to String

Convert an collision category value to a string. The result string is like ccat#id.

Input Parameters:

The CCat
the collision category

Output Parameters:

Result
the result string
Set Collision Category Collide Internally

Set the collide-interneally attribute of a collision category.

Input Parameters:

Collision Category
the collision category

Output Parameters:

Collide Internally?
a boolean value
Set Collision Categories As Friends

Set the friend relation of two collision categories.

Input Parameters:

Collision Category 1
one collision category
Collision Category 2
anothercollision category
Friends?
as friends or not

Output Parameters:

(none)
Personal tools