Public Member Functions

col_filter Class Reference

碰撞检测过滤器 More...

List of all members.

Public Member Functions

def __init__
 初始化函数

Detailed Description

碰撞检测过滤器


Constructor & Destructor Documentation

def __init__ (   self,
  mask = 0,
  category = 0,
  filter_type = EXCLUDE_FILTER 
)

初始化函数

Parameters:
mask16位int 接受碰撞的类别,范围[0, 0xFFFF]
category16位int 碰撞类别,范围[0, 0xFFFF]
filter_type类型EXCLUDE_FILTER, EQUAL_FILTER, INEQUAL_FILTER 过滤方式 EXCLUDE_FILTER, 与标记位不包含的碰 EQUAL_FILTER, 与标记位相等的碰 INEQUAL_FILTER, 与标记位不相等的碰
 All Classes Namespaces Functions Variables Properties