Cocos Creator API

1.5.x

Cocos Creator is the game engine for the future.

Enum RayCastType

Module: cc
Parent Module: cc

Enum for RayCastType.

Closest Number

Detects closest collider on the raycast path.

Any Number

Detects any collider on the raycast path. Once detects a collider, will stop the searching process.

AllClosest Number

Detects all colliders on the raycast path. One collider may return several collision points(because one collider may have several fixtures, one fixture will return one point, the point may inside collider), AllClosest will return the closest one.

All Number

Detects all colliders on the raycast path. One collider may return several collision points, All will return all these points.

There are no properties that match your current filter settings. You can change your filter settings in the index section on this page. index