Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarified collision messages #404

Merged
merged 275 commits into from
Mar 4, 2024
Merged
Changes from all commits
Commits
Show all changes
275 commits
Select commit Hold shift + click to select a range
4c1b7dc
Merge branch 'master' of https://github.com/defold/doc
CocosGames Feb 26, 2021
8c90dce
Merge branch 'master' of https://github.com/defold/doc
CocosGames Mar 3, 2021
1cb14e7
update
CocosGames Mar 3, 2021
5948512
Merge branch 'master' of https://github.com/defold/doc
CocosGames Mar 5, 2021
3830962
image properties
CocosGames Mar 5, 2021
3a0bb17
Merge branch 'master' of https://github.com/defold/doc
CocosGames Mar 9, 2021
c61bc38
update editor
CocosGames Mar 9, 2021
61c2567
Merge branch 'master' of https://github.com/defold/doc
CocosGames Mar 14, 2021
6c4897e
defold sdk update
CocosGames Mar 14, 2021
d767605
Merge branch 'master' of https://github.com/defold/doc
CocosGames Mar 16, 2021
7533c9c
animation updates
CocosGames Mar 16, 2021
3fd48b0
animation fix
CocosGames Mar 16, 2021
86a6452
Merge branch 'master' of https://github.com/defold/doc
CocosGames Mar 23, 2021
f287fe0
Merge branch 'master' of https://github.com/defold/doc
CocosGames Apr 5, 2021
02e2295
run as admin
CocosGames Apr 5, 2021
7db3b63
Merge branch 'master' of https://github.com/defold/doc
CocosGames Apr 7, 2021
36a405c
update bob
CocosGames Apr 7, 2021
03a043d
Merge branch 'master' of https://github.com/defold/doc
CocosGames Apr 11, 2021
3cd24c6
update about AndroidX support
CocosGames Apr 11, 2021
447cd3e
software render
CocosGames Apr 13, 2021
a3cf58a
Merge branch 'master' of https://github.com/defold/doc
CocosGames Apr 13, 2021
baf5be6
Merge branch 'master' of https://github.com/defold/doc
CocosGames Apr 24, 2021
b288a36
linux-faq.md update
CocosGames Apr 24, 2021
8d3a59f
Merge branch 'master' of https://github.com/defold/doc
CocosGames Apr 29, 2021
2fde132
4.28.2021 updates
CocosGames Apr 29, 2021
cedfb59
Merge branch 'master' of https://github.com/defold/doc
CocosGames May 2, 2021
adfa000
Basis Universal format
CocosGames May 2, 2021
428670f
Merge branch 'master' of https://github.com/defold/doc
CocosGames May 6, 2021
40c9c21
sound & mesh
CocosGames May 6, 2021
53cffda
Merge branch 'master' of https://github.com/defold/doc
CocosGames May 18, 2021
1716143
gamepad event mapping
CocosGames May 18, 2021
c09ca2a
admob url
CocosGames May 22, 2021
6d9ce16
Minor edit to building blocks intro text
CocosGames May 28, 2021
18531f8
Merge branch 'master' of https://github.com/defold/doc
CocosGames May 28, 2021
7b1c40f
Merge branch 'master' of https://github.com/defold/doc
CocosGames Jun 18, 2021
da1a1d1
update gamepad & ios
CocosGames Jun 18, 2021
3770c1a
Merge branch 'master' of https://github.com/defold/doc
CocosGames Jun 21, 2021
601b442
project settings
CocosGames Jun 21, 2021
8bff0dd
Merge branch 'master' of https://github.com/defold/doc
CocosGames Jun 28, 2021
35feca8
libffi version
CocosGames Jun 28, 2021
7066e7a
Merge branch 'master' of https://github.com/defold/doc
CocosGames Jul 11, 2021
ad7ed0c
scaling
CocosGames Jul 11, 2021
627e70b
Merge branch 'master' of https://github.com/defold/doc
CocosGames Jul 13, 2021
eda6c34
image compression
CocosGames Jul 13, 2021
a7ffd1c
Merge branch 'master' of https://github.com/defold/doc
CocosGames Aug 10, 2021
81ae25f
update gamepads
CocosGames Aug 10, 2021
0c3070c
Merge branch 'master' of https://github.com/defold/doc
CocosGames Aug 19, 2021
6fbf531
increase memory
CocosGames Aug 19, 2021
3758381
Merge branch 'master' of https://github.com/defold/doc
CocosGames Aug 26, 2021
9f94968
caching assets
CocosGames Aug 26, 2021
c775fb1
Merge branch 'defold:master' into master
CocosGames Oct 6, 2021
3864422
update 2021/10/6
CocosGames Oct 6, 2021
c6ba096
Merge branch 'master' of https://github.com/defold/doc
CocosGames Oct 16, 2021
903a6c0
update 2021/10/16
CocosGames Oct 16, 2021
c339cd6
Merge branch 'defold:master' into master
CocosGames Nov 12, 2021
6041435
update 2021/11/12
CocosGames Nov 12, 2021
b1f1cdf
Merge branch 'master' of https://github.com/defold/doc
CocosGames Dec 2, 2021
4533e78
allow dynamic transforms update
CocosGames Dec 2, 2021
6fba741
Merge branch 'master' of https://github.com/defold/doc
CocosGames Dec 13, 2021
fdd1df5
Bundle update
CocosGames Dec 13, 2021
1f11750
Merge branch 'master' of https://github.com/defold/doc
CocosGames Dec 31, 2021
dca745e
update faq
CocosGames Dec 31, 2021
68308d2
Merge branch 'master' of https://github.com/defold/doc
CocosGames Jan 15, 2022
ed539b5
bullet & bob
CocosGames Jan 15, 2022
d735be1
Merge branch 'master' of https://github.com/defold/doc
CocosGames Jan 30, 2022
540f8f6
script properties update
CocosGames Jan 30, 2022
ea1a134
Merge branch 'master' of https://github.com/defold/doc
CocosGames Feb 13, 2022
56fb1d1
editor-styling
CocosGames Feb 13, 2022
f1c820e
Merge branch 'master' of https://github.com/defold/doc
CocosGames Feb 15, 2022
e1cfaf4
build server url
CocosGames Feb 15, 2022
c00f838
Merge branch 'master' of https://github.com/defold/doc
CocosGames Feb 17, 2022
91b39b8
editor templates
CocosGames Feb 17, 2022
d1ab398
Merge branch 'master' of https://github.com/defold/doc
CocosGames Feb 23, 2022
883af4b
spine extension update
CocosGames Feb 23, 2022
a49dbd2
Merge branch 'master' of https://github.com/defold/doc
CocosGames Mar 27, 2022
22988f3
Merge branch 'defold:master' into master
CocosGames Apr 7, 2022
79f317f
Merge branch 'defold:master' into master
CocosGames Apr 15, 2022
c2a31fd
Merge branch 'defold:master' into master
CocosGames May 3, 2022
92b6cd4
Merge branch 'master' of https://github.com/defold/doc
CocosGames May 12, 2022
4dbc35d
Merge branch 'defold:master' into master
CocosGames May 12, 2022
04dad01
Merge remote-tracking branch 'origin/master'
CocosGames May 12, 2022
4a029a0
Merge branch 'defold:master' into master
CocosGames May 14, 2022
0d0f301
Merge remote-tracking branch 'origin/master'
CocosGames May 14, 2022
4d78c26
Fix typo in the "optimizations" word in Chinese docs
CocosGames May 14, 2022
ffe5e2d
Update to material.md - Constants buffers
CocosGames May 22, 2022
7b5d7ce
Merge branch 'master' of https://github.com/defold/doc
CocosGames May 23, 2022
0e21e12
Verify Graphics Calls
CocosGames May 23, 2022
dd6aa27
Merge branch 'master' of https://github.com/defold/doc
CocosGames May 26, 2022
9635e06
H5 parameters
CocosGames May 26, 2022
56d3eb0
Merge branch 'master' of https://github.com/defold/doc
CocosGames May 30, 2022
59d03fe
OpenJDK downloads
CocosGames May 30, 2022
4d8ce40
Merge branch 'master' of https://github.com/defold/doc
CocosGames Jun 23, 2022
de7c130
cn update corresponds to [pull 259](https://github.com/defold/doc/pul…
CocosGames Jun 24, 2022
060d514
Merge branch 'master' of https://github.com/defold/doc
CocosGames Jul 1, 2022
04d0a83
application security
CocosGames Jul 1, 2022
34860a8
porting guidelines
CocosGames Jul 11, 2022
f26f08f
Merge branch 'defold:master' into master
CocosGames Jul 11, 2022
e306c22
update for 8f1651f
CocosGames Jul 17, 2022
1d6acae
Merge branch 'defold:master' into master
CocosGames Jul 17, 2022
a75f6e0
cn update for 094bf6f
CocosGames Jul 17, 2022
083e231
cn update for 20fdfc5 & 6263317
CocosGames Jul 17, 2022
bd3236b
Merge branch 'defold:master' into master
CocosGames Jul 19, 2022
76d916d
cn update for 7/19/2022
CocosGames Jul 19, 2022
342cf2f
title
CocosGames Jul 22, 2022
8463c44
Merge branch 'defold:master' into master
CocosGames Jul 22, 2022
f99fd9b
Merge branch 'defold:master' into master
CocosGames Aug 12, 2022
b9b6d19
profiling update
CocosGames Aug 12, 2022
d662809
update editor.md
CocosGames Aug 31, 2022
d1bebaa
Merge branch 'defold:master' into master
CocosGames Aug 31, 2022
31a1d82
Merge remote-tracking branch 'origin/master'
CocosGames Aug 31, 2022
b29ab3a
update bob.md
CocosGames Sep 6, 2022
732dedb
Merge branch 'master' into master
CocosGames Sep 6, 2022
d7ffac0
update shortcuts
CocosGames Sep 10, 2022
3bad72b
Merge branch 'defold:master' into master
CocosGames Sep 10, 2022
c14e30c
Merge remote-tracking branch 'origin/master'
CocosGames Sep 10, 2022
3cdbe24
Merge branch 'defold:master' into master
CocosGames Sep 15, 2022
2548247
update fixed update note
CocosGames Sep 15, 2022
323ec7b
Merge branch 'defold:master' into master
CocosGames Sep 27, 2022
54df99a
Update properties.md
CocosGames Sep 27, 2022
8e6f0d8
Merge remote-tracking branch 'origin/master'
CocosGames Sep 27, 2022
520591f
Merge branch 'defold:master' into master
CocosGames Sep 29, 2022
a9a588c
Update material.md
CocosGames Sep 29, 2022
5568764
Merge branch 'defold:master' into master
CocosGames Oct 6, 2022
9527da0
Updates links
CocosGames Oct 6, 2022
0c21bcf
Merge remote-tracking branch 'origin/master'
CocosGames Oct 6, 2022
43bee38
Update bob help with the latest info
CocosGames Oct 7, 2022
dad5c4d
Merge branch 'defold:master' into master
CocosGames Oct 13, 2022
1c87225
camera & renderer
CocosGames Oct 13, 2022
4e77aec
Merge branch 'defold:master' into master
CocosGames Oct 24, 2022
fa0bb32
Updated android keystore info zh_cn
CocosGames Oct 24, 2022
b8157cf
Merge branch 'defold:master' into master
CocosGames Oct 25, 2022
eb9e563
bundling.md release vs debug zh_cn
CocosGames Oct 25, 2022
ca185d6
Merge branch 'defold:master' into master
CocosGames Nov 1, 2022
328b8e5
update bob.md & gui-clipping.md
CocosGames Nov 1, 2022
146f36a
Merge branch 'defold:master' into master
CocosGames Nov 2, 2022
ae05b35
contentless bundle
CocosGames Nov 2, 2022
350077c
Merge branch 'defold:master' into master
CocosGames Nov 8, 2022
3f47ae2
consoles update
CocosGames Nov 8, 2022
d9d8b78
Merge branch 'defold:master' into master
CocosGames Nov 12, 2022
87199de
model animation link
CocosGames Nov 12, 2022
68c2507
Merge remote-tracking branch 'origin/master'
CocosGames Nov 12, 2022
17852c1
Merge branch 'defold:master' into master
CocosGames Nov 24, 2022
515fba8
gamepad & faq
CocosGames Nov 24, 2022
f9bde22
Merge branch 'master' of https://github.com/defold/doc
CocosGames Dec 6, 2022
fffc188
remove a camera lib
CocosGames Dec 6, 2022
2238487
Merge branch 'defold:master' into master
CocosGames Dec 10, 2022
b220dfa
Merge branch 'defold:master' into master
CocosGames Dec 13, 2022
302c28f
Merge branch 'defold:master' into master
CocosGames Dec 27, 2022
52c368e
font shadow render mode fix
CocosGames Dec 27, 2022
fc5756a
Merge branch 'defold:master' into master
CocosGames Jan 4, 2023
b7a8651
updates about app-manifest and others
CocosGames Jan 4, 2023
550390b
Merge branch 'master' of https://github.com/defold/doc
CocosGames Jan 11, 2023
5e5f2bc
Update script.md
CocosGames Jan 11, 2023
ff7e95d
Merge branch 'master' of https://github.com/defold/doc
CocosGames Jan 17, 2023
c989578
includes in shaders
CocosGames Jan 17, 2023
9de2ea8
Merge branch 'master' of https://github.com/defold/doc
CocosGames Jan 19, 2023
5b67928
Merge branch 'master' of https://github.com/defold/doc
CocosGames Jan 19, 2023
555c633
editor scripts
CocosGames Jan 21, 2023
97da6aa
Merge branch 'master' of https://github.com/defold/doc
CocosGames Jan 23, 2023
c144306
material updates
CocosGames Jan 23, 2023
89b723b
Merge branch 'master' of https://github.com/defold/doc
CocosGames Jan 26, 2023
e144ab6
Added dynamic atlas and texture creation
CocosGames Jan 26, 2023
b159006
Merge branch 'master' of https://github.com/defold/doc
CocosGames Jan 27, 2023
2070141
fixes for atlas and some others
CocosGames Jan 27, 2023
086eb59
Merge branch 'master' of https://github.com/defold/doc
CocosGames Jan 28, 2023
26d299b
update screenshots and add explanations (CN)
CocosGames Jan 28, 2023
594ab1c
add a line about Dynamic Prototype (CN)
CocosGames Jan 30, 2023
b2cb162
Merge branch 'defold:master' into master
CocosGames Jan 30, 2023
a778320
remove "inline" marks in pics
CocosGames Jan 30, 2023
8c9ee55
de-translate the subtitle "Running the debugger" & images fix
CocosGames Jan 30, 2023
aff2995
Merge branch 'defold:master' into master
CocosGames Feb 14, 2023
66795dd
Merge branch 'defold:master' into master
CocosGames Feb 15, 2023
8767ebc
Merge branch 'master' of https://github.com/defold/doc
CocosGames Feb 20, 2023
ca6fada
bundle identifier restrictions
CocosGames Feb 20, 2023
6d547ba
Merge branch 'master' of https://github.com/defold/doc
CocosGames Feb 23, 2023
f108ba5
node properties Enabled and Visible (CN)
CocosGames Feb 23, 2023
3aaeb2b
Merge branch 'defold:master' into master
CocosGames Feb 24, 2023
c290e3c
Merge branch 'defold:master' into master
CocosGames Feb 26, 2023
df2ca46
Merge branch 'master' of https://github.com/defold/doc
CocosGames Mar 7, 2023
3d5be1c
release checklist & slice-9
CocosGames Mar 7, 2023
0a91c95
Merge branch 'defold:master' into master
CocosGames Mar 14, 2023
50bdb83
Merge branch 'defold:master' into master
CocosGames Apr 2, 2023
c901610
Update project-settings.md (CN)
CocosGames Apr 2, 2023
40d0e62
Merge branch 'master' of https://github.com/defold/doc
CocosGames Apr 3, 2023
968f145
Update camera.md (CN)
CocosGames Apr 3, 2023
7ec2e97
Merge branch 'defold:master' into master
CocosGames Apr 3, 2023
5b0a16d
Merge branch 'master' of https://github.com/defold/doc
CocosGames Apr 5, 2023
c34dddb
Update project-settings.md (CN)
CocosGames Apr 5, 2023
198f33e
Merge branch 'defold:master' into master
CocosGames Apr 5, 2023
0cdb584
Merge remote-tracking branch 'origin/master'
CocosGames Apr 5, 2023
1d7ebe2
Merge branch 'master' of https://github.com/defold/doc
CocosGames Apr 7, 2023
435fb31
culling of meshes (CN)
CocosGames Apr 7, 2023
fe15eb2
Merge branch 'master' of https://github.com/defold/doc
CocosGames Apr 7, 2023
872e9ff
Update project-settings.md (CN)
CocosGames Apr 7, 2023
5a904ab
Merge branch 'master' of https://github.com/defold/doc
CocosGames Apr 11, 2023
459aff3
gltf model file support (CN)
CocosGames Apr 11, 2023
6190404
Merge branch 'master' of https://github.com/defold/doc
CocosGames Apr 11, 2023
ba1b529
updates about factory (CN)
CocosGames Apr 11, 2023
65b2db3
Merge branch 'master' of https://github.com/defold/doc
CocosGames Apr 13, 2023
7608f5e
Update bob.md (CN)
CocosGames Apr 13, 2023
22b8fe1
Merge branch 'master' of https://github.com/defold/doc
CocosGames Apr 19, 2023
aea8f5e
Update bob.jar help (CN)
CocosGames Apr 19, 2023
d0798d3
Merge branch 'master' of https://github.com/defold/doc
CocosGames Jun 22, 2023
3969fab
Update about renderer and other things
CocosGames Jun 22, 2023
8d1e016
Update PS4 development and other things
CocosGames Jun 22, 2023
2b060dc
Dynamic prototype part of the collection factory.
CocosGames Jun 26, 2023
ddf45ea
Merge branch 'master' of https://github.com/defold/doc
CocosGames Jan 21, 2024
c059fc4
sync to atlas.md
CocosGames Jan 21, 2024
0514a48
sync to design.md
CocosGames Jan 21, 2024
1234199
sync to gpgs.md
CocosGames Jan 22, 2024
04ee2f9
sync to hot-reload.md
CocosGames Jan 22, 2024
917b41c
Merge branch 'master' of https://github.com/defold/doc
CocosGames Jan 23, 2024
b580532
sync to linux.md
CocosGames Jan 23, 2024
111686e
sync to live-update.md
CocosGames Jan 24, 2024
41f81cd
Merge branch 'master' of https://github.com/defold/doc
CocosGames Jan 24, 2024
e29613e
sync to lua.md
CocosGames Jan 24, 2024
2ad0121
sync to networking.md
CocosGames Jan 24, 2024
0d2faea
sync to physics-shapes.md
CocosGames Jan 25, 2024
aa779e8
sync to push.md
CocosGames Jan 25, 2024
8c5f113
sync to test.md
CocosGames Jan 26, 2024
50ca9ff
sync to working-offline.md
CocosGames Jan 26, 2024
24beee3
Merge branch 'master' of https://github.com/defold/doc
CocosGames Jan 26, 2024
4c0aa3e
update material.md
CocosGames Jan 26, 2024
f54367a
update zerobrane.md
CocosGames Jan 26, 2024
16d1824
all done
CocosGames Jan 26, 2024
a1ee357
Merge branch 'master' of https://github.com/defold/doc
CocosGames Jan 27, 2024
b51832d
Splitting .zip archives in live-update.md
CocosGames Jan 27, 2024
148a957
manual for collision events
CocosGames Jan 28, 2024
0357f04
Merge branch 'master' of https://github.com/defold/doc
CocosGames Feb 2, 2024
7753461
Updated sprite documentation to include info about multiple textures
CocosGames Feb 2, 2024
0a5af00
Merge branch 'defold:master' into master
CocosGames Feb 5, 2024
83f42a2
Merge branch 'master' of https://github.com/defold/doc
CocosGames Feb 5, 2024
25bb663
Merge remote-tracking branch 'origin/master'
CocosGames Feb 5, 2024
bb26c8d
Merge branch 'defold:master' into master
CocosGames Feb 6, 2024
fd4c3c5
update editor-scripts.md & physics-events.md
CocosGames Feb 6, 2024
d24627f
Merge branch 'master' of https://github.com/defold/doc
CocosGames Feb 7, 2024
dcd8076
update buffer.md & physics-shapes.md
CocosGames Feb 7, 2024
8fef74e
Merge branch 'master' of https://github.com/defold/doc
CocosGames Feb 8, 2024
095df57
screen blend mode
CocosGames Feb 8, 2024
4970ac3
Update camera manual for zh with new function.
CocosGames Feb 12, 2024
63a7242
Merge branch 'master' of https://github.com/defold/doc
CocosGames Feb 12, 2024
1ec2f5d
Fix texture profile documentation for 1.7.0 zh
CocosGames Feb 14, 2024
24fe9be
update material.md & render.md
CocosGames Feb 24, 2024
f6c20a4
Merge branch 'master' of https://github.com/defold/doc
CocosGames Feb 24, 2024
080c0d3
notice about physics-events
CocosGames Feb 25, 2024
037a5e2
Merge branch 'master' of https://github.com/defold/doc
CocosGames Feb 25, 2024
4792a88
Merge branch 'master' of https://github.com/defold/doc
CocosGames Mar 1, 2024
a10f418
script-properties notes & PS5
CocosGames Mar 1, 2024
02d1575
Merge branch 'master' of https://github.com/defold/doc
CocosGames Mar 4, 2024
9320062
Clarified collision messages
CocosGames Mar 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions docs/zh/manuals/physics-messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ brief: 当两个碰撞对象接触, 引擎会向这两个对象上的所有组

# 碰撞消息

当两个碰撞对象接触, 引擎会向这两个对象上的所有组件广播碰撞消息:
当两个碰撞对象接触, 引擎会向这两个对象广播碰撞消息:

## 碰撞响应

所有碰撞物体都会收到 `"collision_response"` 消息. 消息包含如下内容:
如果碰撞一方是 "dynamic", "kinematic" 或 "static" 类型时会收到 `"collision_response"` 消息. 消息包含如下内容:

`other_id`
: 另一个碰撞物的id (`hash`过的)
Expand Down Expand Up @@ -37,7 +37,7 @@ end

## 碰撞点响应

如果碰撞一方是 dynamic 或 kinematic 对象, 那么它会收到 `"contact_point_response"` 消息. 消息包含如下内容:
如果碰撞一方是 dynamic 或 kinematic 对象, 而另一方是 "dynamic", "kinematic" 或 "static" 类型时, 会收到 `"contact_point_response"` 消息. 消息包含如下内容:

`position`
: 接触点世界坐标 (`vector3`类型).
Expand Down Expand Up @@ -91,8 +91,7 @@ end

## 触发器响应

作为 "trigger" 类型的碰撞对象会收到 `"trigger_response"` 消息.
触发器与碰撞对象接触时会收到 `"collision_response"` 消息. 而且, 接触开始和结束时都会收到 `"trigger_response"` 消息. 消息包含如下信息:
如果碰撞一方是 "trigger" 类型则会收到 `"trigger_response"`. 碰撞开始时和碰撞结束时都会发送一次消息. 消息包含如下内容:

`other_id`
: 另一个物体的id (`hash`过的).
Expand Down