Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-libs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
zeroing-libs
Commits
6c1b291e
Commit
6c1b291e
authored
Aug 11, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
e2806289
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
+6
-4
p2demo.json
dist/customs/p2demo.json
+1
-1
main.js
src/custom/p2demo/debug/main.js
+3
-1
main.js.map
src/custom/p2demo/debug/main.js.map
+1
-1
GameView.ts
src/custom/p2demo/src/game/GameView.ts
+1
-1
No files found.
dist/customs/p2demo.json
View file @
6c1b291e
This diff is collapsed.
Click to expand it.
src/custom/p2demo/debug/main.js
View file @
6c1b291e
...
...
@@ -94,7 +94,9 @@
};
GameView
.
prototype
.
setup
=
function
()
{
console
.
log
(
'setup'
);
var
world
=
new
p2
.
World
({});
var
world
=
new
p2
.
World
({
gravity
:
[
0
,
-
20
],
});
world
.
sleepMode
=
p2
.
World
.
BODY_SLEEPING
;
var
planeShape
=
new
p2
.
Plane
();
var
planeBody
=
new
p2
.
Body
();
...
...
src/custom/p2demo/debug/main.js.map
View file @
6c1b291e
This diff is collapsed.
Click to expand it.
src/custom/p2demo/src/game/GameView.ts
View file @
6c1b291e
...
...
@@ -116,7 +116,7 @@ export default class GameView extends engine.Container {
//创建world
var
world
:
p2
.
World
=
new
p2
.
World
({
// gravity: [0,
0],
gravity
:
[
0
,
-
1
0
],
});
world
.
sleepMode
=
p2
.
World
.
BODY_SLEEPING
;
...
...
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