geomUtils.intersect Class

Module: cc

Index

Methods

Details

Methods

ray_cast

Check whether ray intersect with nodes

meta description
Returns
Defined in cocos2d/core/geom-utils/intersect.ts:88
Parameters
ray_plane

ray-plane intersect

meta description
Returns number
Defined in cocos2d/core/geom-utils/intersect.ts:201
Parameters
line_plane

line-plane intersect

meta description
Returns number
Defined in cocos2d/core/geom-utils/intersect.ts:223
Parameters
ray_triangle

ray-triangle intersect

meta description
Returns number
Defined in cocos2d/core/geom-utils/intersect.ts:244
Parameters
line_triangle

line-triangle intersect

meta description
Returns number
Defined in cocos2d/core/geom-utils/intersect.ts:287
Parameters
line_quad

line-quad intersect

meta description
Returns number
Defined in cocos2d/core/geom-utils/intersect.ts:352
Parameters
  • p Vec3 A point on a line segment
  • q Vec3 Another point on the line segment
  • a Vec3 Quadrilateral point a
  • b Vec3 Quadrilateral point b
  • c Vec3 Quadrilateral point c
  • d Vec3 Quadrilateral point d
  • outPt Vec3 optional, The intersection point
ray_sphere

ray-sphere intersect

meta description
Returns number
Defined in cocos2d/core/geom-utils/intersect.ts:445
Parameters
ray_aabb

ray-aabb intersect

meta description
Returns number
Defined in cocos2d/core/geom-utils/intersect.ts:476
Parameters
ray_obb

ray-obb intersect

meta description
Returns number
Defined in cocos2d/core/geom-utils/intersect.ts:509
Parameters
aabb_aabb

aabb-aabb intersect

meta description
Returns number
Defined in cocos2d/core/geom-utils/intersect.ts:589
Parameters
aabb_obb

aabb-obb intersect

meta description
Returns number
Defined in cocos2d/core/geom-utils/intersect.ts:678
Parameters
aabb_plane

aabb-plane intersect

meta description
Returns number
Defined in cocos2d/core/geom-utils/intersect.ts:733
Parameters
aabb_frustum

aabb-frustum intersect, faster but has false positive corner cases

meta description
Returns number
Defined in cocos2d/core/geom-utils/intersect.ts:752
Parameters
aabb_frustum_accurate

aabb-frustum intersect, handles most of the false positives correctly

meta description
Returns number
Defined in cocos2d/core/geom-utils/intersect.ts:772
Parameters
obb_point

obb-point intersect

meta description
Returns boolean
Defined in cocos2d/core/geom-utils/intersect.ts:824
Parameters
obb_plane

obb-plane intersect

meta description
Returns number
Defined in cocos2d/core/geom-utils/intersect.ts:843
Parameters
obb_frustum

obb-frustum intersect, faster but has false positive corner cases

meta description
Returns number
Defined in cocos2d/core/geom-utils/intersect.ts:870
Parameters
obb_frustum_accurate

obb-frustum intersect, handles most of the false positives correctly

meta description
Returns number
Defined in cocos2d/core/geom-utils/intersect.ts:890
Parameters
obb_obb

obb-obb intersect

meta description
Returns number
Defined in cocos2d/core/geom-utils/intersect.ts:949
Parameters
sphere_plane

phere-plane intersect, not necessarily faster than obb-plane
due to the length calculation of the plane normal to factor out
the unnomalized plane distance

meta description
Returns number
Defined in cocos2d/core/geom-utils/intersect.ts:1004
Parameters
sphere_frustum

sphere-frustum intersect, faster but has false positive corner cases

meta description
Returns number
Defined in cocos2d/core/geom-utils/intersect.ts:1023
Parameters
sphere_frustum_accurate

sphere-frustum intersect, handles the false positives correctly

meta description
Returns number
Defined in cocos2d/core/geom-utils/intersect.ts:1043
Parameters
sphere_sphere

sphere-sphere intersect

meta description
Returns boolean
Defined in cocos2d/core/geom-utils/intersect.ts:1076
Parameters
sphere_aabb

sphere-aabb intersect

meta description
Returns boolean
Defined in cocos2d/core/geom-utils/intersect.ts:1090
Parameters
sphere_obb

sphere-obb intersect

meta description
Returns boolean
Defined in cocos2d/core/geom-utils/intersect.ts:1107
Parameters
resolve

The intersection detection of g1 and g2 can fill in the shape in the basic geometry.

meta description
Defined in cocos2d/core/geom-utils/intersect.ts:1159
Parameters
  • g1 Unknown Geometry 1
  • g2 Unknown Geometry 2
  • outPt Unknown optional, Intersection point. (note: only partial shape detection with this return value)

results matching ""

    No results matching ""