Shape:setFilterData

Shape:setFilterData

Removed in LÖVE 0.8.0
This function is not supported in that and later versions.

Sets the filter data for a Shape. Info stolen from box2d.org:

Collision filtering is a system for preventing collision between shapes. For example, say you make a character that rides a bicycle. You want the bicycle to collide with the terrain and the character to collide with the terrain, but you don't want the character to collide with the bicycle (because they must overlap). Box2D supports such collision filtering using categories and groups.

Read more about this in the Box2D documentation.

Function

Synopsis

Shape:setFilterData( categoryBits, maskBits, groupIndex )

Arguments

number categoryBits
A 16-bit integer representing category membership.
number maskBits
A 16-bit integer representing masked categories.
number groupIndex
An integer representing the group index.

Returns

Nothing.

See Also


© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Shape:setFilterData

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部