mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
3ed9edfbc6
* phy framework * phy mat * framework/index.ts * a node can have more than one collider * rename physical to physics * fix * fix * support mix ts js * fix * fix problems in issue * fix * remove RigidBodyType, add DataFlow * useGravity, freezeRotation, isKinematic * raycasts * fit buildin-world raycast options * add contact material * lint * add rigid-body-component.ts * some improvements * improvements * fix bug
46 lines
2.3 KiB
JavaScript
46 lines
2.3 KiB
JavaScript
/****************************************************************************
|
|
Copyright (c) 2013-2016 Chukong Technologies Inc.
|
|
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
|
|
|
|
http://www.cocos.com
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated engine source code (the "Software"), a limited,
|
|
worldwide, royalty-free, non-assignable, revocable and non-exclusive license
|
|
to use Cocos Creator solely to develop games on your target platforms. You shall
|
|
not use Cocos Creator software for developing other software or tools that's
|
|
used for developing games. You are not granted to publish, distribute,
|
|
sublicense, and/or sell copies of Cocos Creator.
|
|
|
|
The software or tools in this License Agreement are licensed, not sold.
|
|
Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
THE SOFTWARE.
|
|
****************************************************************************/
|
|
|
|
import CameraComponent from './camera-component';
|
|
import AnimationComponent from './animation-component';
|
|
import LightComponent from './light-component';
|
|
import ModelComponent from './model-component';
|
|
import SkinningModelComponent from './skinning-model-component';
|
|
import SkyboxComponent from './skybox-component';
|
|
import { BoxColliderComponent, SphereColliderComponent } from './physics/collider-component';
|
|
import { RigidBodyComponent } from './physics/rigid-body-component';
|
|
import './physics/index';
|
|
|
|
cc.CameraComponent = CameraComponent;
|
|
cc.AnimationComponent = AnimationComponent;
|
|
cc.LightComponent = LightComponent;
|
|
cc.ModelComponent = ModelComponent;
|
|
cc.SkinningModelComponent = SkinningModelComponent;
|
|
cc.SkyboxComponent = SkyboxComponent;
|
|
|
|
cc.RigidBodyComponent = RigidBodyComponent;
|
|
cc.BoxColliderComponent = BoxColliderComponent;
|
|
cc.SphereColliderComponent = SphereColliderComponent; |