Manifold Class

Module: cc

Index

Properties
  • type Number Manifold type : 0: e_circles, 1: e_faceA, 2: e_faceB
  • localPoint Vec2 The local point usage depends on the manifold type: -e_circles: the local center of circleA -e_faceA: the center of faceA -e_faceB: the center of faceB
  • localNormal Vec2 -e_circles: not used -e_faceA: the normal on polygonA -e_faceB: the normal on polygonB
  • points [ManifoldPoint] the points of contact.

Details

Properties

type

Manifold type : 0: e_circles, 1: e_faceA, 2: e_faceB

meta description
Type Number
Defined in https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/physics/CCPhysicsContact.js:106
localPoint

The local point usage depends on the manifold type: -e_circles: the local center of circleA -e_faceA: the center of faceA -e_faceB: the center of faceB

meta description
Type Vec2
Defined in https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/physics/CCPhysicsContact.js:115
localNormal

-e_circles: not used -e_faceA: the normal on polygonA -e_faceB: the normal on polygonB

meta description
Type Vec2
Defined in https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/physics/CCPhysicsContact.js:129
points

the points of contact.

meta description
Type [ManifoldPoint]
Defined in https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/physics/CCPhysicsContact.js:142

results matching ""

    No results matching ""