Commit 9d0fd169 by 李楚霏

修改

parent 2cff6957
...@@ -1953,7 +1953,7 @@ ...@@ -1953,7 +1953,7 @@
"_enabled": true, "_enabled": true,
"_type": 2, "_type": 2,
"_allowSleep": true, "_allowSleep": true,
"_gravityScale": 1, "_gravityScale": 0,
"_linearDamping": 0, "_linearDamping": 0,
"_angularDamping": 0, "_angularDamping": 0,
"_linearVelocity": { "_linearVelocity": {
...@@ -1977,7 +1977,7 @@ ...@@ -1977,7 +1977,7 @@
}, },
"_enabled": true, "_enabled": true,
"tag": 0, "tag": 0,
"_density": 1, "_density": 1000,
"_sensor": false, "_sensor": false,
"_friction": 0.2, "_friction": 0.2,
"_restitution": 0, "_restitution": 0,
...@@ -2312,7 +2312,7 @@ ...@@ -2312,7 +2312,7 @@
}, },
"_enabled": true, "_enabled": true,
"tag": 0, "tag": 0,
"_density": 1000000, "_density": 10000000,
"_sensor": false, "_sensor": false,
"_friction": 0.2, "_friction": 0.2,
"_restitution": 0, "_restitution": 0,
......
...@@ -21,7 +21,7 @@ export default class NewClass extends cc.Component { ...@@ -21,7 +21,7 @@ export default class NewClass extends cc.Component {
} }
onPostSolve(contact, selfCollider, otherCollider) { onPostSolve(contact, selfCollider, otherCollider) {
// this.rigidBody.linearVelocity = cc.v2(0, 0); this.rigidBody.linearVelocity = cc.v2(0, 0);
} }
onLoad () { onLoad () {
......
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