Commit f5fe9e26 by 李楚霏

新增道具

parent 9d0fd169
{
"ver": "2.3.4",
"uuid": "9c91088f-09a3-41d9-ab97-51dd4d06439c",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 149,
"height": 154,
"platformSettings": {},
"subMetas": {
"disk1": {
"ver": "1.0.4",
"uuid": "4def6a80-0747-4d9e-aa11-51abca42a523",
"rawTextureUuid": "9c91088f-09a3-41d9-ab97-51dd4d06439c",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 149,
"height": 154,
"rawWidth": 149,
"rawHeight": 154,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.4",
"uuid": "315c08fe-6ab4-430a-bba5-652f229e6348",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 51,
"height": 52,
"platformSettings": {},
"subMetas": {
"star": {
"ver": "1.0.4",
"uuid": "63d29476-7c4b-4ebc-8368-77abe3eb674f",
"rawTextureUuid": "315c08fe-6ab4-430a-bba5-652f229e6348",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 51,
"height": 52,
"rawWidth": 51,
"rawHeight": 52,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.4",
"uuid": "4c2e189c-cbe0-4077-8fab-f76c80568a2e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 368,
"height": 73,
"platformSettings": {},
"subMetas": {
"starhook": {
"ver": "1.0.4",
"uuid": "3b0a7e3b-c73e-43a4-a307-3d56e46fa2ce",
"rawTextureUuid": "4c2e189c-cbe0-4077-8fab-f76c80568a2e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 368,
"height": 73,
"rawWidth": 368,
"rawHeight": 73,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
......@@ -16,6 +16,7 @@ export default class NewClass extends cc.Component {
onPreSolve(contact, selfCollider, otherCollider) {
this.scheduleOnce(() => {
this.rigidBody.type = cc.RigidBodyType.Kinematic;
otherCollider.node.getComponent(cc.RigidBody).type = cc.RigidBodyType.Dynamic;
}, 0);
this.rigidBody.linearVelocity = cc.v2(0, -otherCollider.node.getComponent(cc.RigidBody).angularVelocity);
......
// Learn TypeScript:
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
const {ccclass, property} = cc._decorator;
@ccclass
export default class NewClass extends cc.Component {
@property(cc.Label)
label: cc.Label = null;
@property
text: string = 'hello';
// LIFE-CYCLE CALLBACKS:
// onLoad () {}
start () {
}
// update (dt) {}
}
{
"ver": "1.0.8",
"uuid": "34dffee0-8f29-482d-aefb-f11e58e90a2c",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment