Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
天梦-黄聪鑫
/
RescureMenDemo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9d0fd169
authored
4 years ago
by
李楚霏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
2cff6957
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
rescureMen/assets/scene/test.fire
+3
-3
rescureMen/assets/script/rope.ts
+1
-1
No files found.
rescureMen/assets/scene/test.fire
View file @
9d0fd169
...
...
@@ -1953,7 +1953,7 @@
"_enabled": true,
"_type": 2,
"_allowSleep": true,
"_gravityScale":
1
,
"_gravityScale":
0
,
"_linearDamping": 0,
"_angularDamping": 0,
"_linearVelocity": {
...
...
@@ -1977,7 +1977,7 @@
},
"_enabled": true,
"tag": 0,
"_density": 1,
"_density": 1
000
,
"_sensor": false,
"_friction": 0.2,
"_restitution": 0,
...
...
@@ -2312,7 +2312,7 @@
},
"_enabled": true,
"tag": 0,
"_density": 1000000,
"_density": 1000000
0
,
"_sensor": false,
"_friction": 0.2,
"_restitution": 0,
...
...
This diff is collapsed.
Click to expand it.
rescureMen/assets/script/rope.ts
View file @
9d0fd169
...
...
@@ -21,7 +21,7 @@ export default class NewClass extends cc.Component {
}
onPostSolve
(
contact
,
selfCollider
,
otherCollider
)
{
//
this.rigidBody.linearVelocity = cc.v2(0, 0);
this
.
rigidBody
.
linearVelocity
=
cc
.
v2
(
0
,
0
);
}
onLoad
()
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment