Cocos Creator API

1.5.x

Cocos Creator is the game engine for the future.

PhysicsCollider

Module: cc
Parent Module: cc

Properties

density Number

The density.

sensor Boolean

A sensor collider collects contact information but never generates a collision response

friction Number

The friction coefficient, usually in the range [0,1].

restitution Number

The restitution (elasticity) usually in the range [0,1].

body RigidBody

Physics collider will find the rigidbody component on the node and set to this property.

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

Methods

apply ( )

Apply current changes to collider, this will regenerate inner box2d fixtures.

getAABB ( )

Get the world aabb of the collider

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