Skip to content

Commit

Permalink
Site changes [skip-ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
defold-services committed Mar 3, 2024
1 parent 36b422d commit 007a64a
Show file tree
Hide file tree
Showing 5 changed files with 41,451 additions and 41,447 deletions.
4 changes: 2 additions & 2 deletions _includes/shared/zh/consoles-faq.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#### Q: 开发主机游戏需要什么别的工具吗?

A: 使用 Defold 编辑器和命令行工具都可以打包主机游戏. 一旦你取得了相应开发资格, 关于如何调试 Nintendo SwitchPlayStation®4 游戏的方法也会发送给你.
A: 使用 Defold 编辑器和命令行工具都可以打包主机游戏. 一旦你取得了相应开发资格, 关于如何调试 PlayStation®4, PlayStation®5Nintendo Switch 游戏的方法也会发送给你.


#### Q: 开发跨平台游戏加上主机游戏, 一个代码库够用吗?

A: 够用, 所有标准 Defold API 功能在主机游戏平台同样有效. 除此之外也许需要调用一些 Nintendo SwitchPlayStation®4 的原生功能, 但总体上讲一套代码跨平台没问题.
A: 够用, 所有标准 Defold API 功能在主机游戏平台同样有效. 除此之外也许需要调用一些 PlayStation®4, PlayStation®5Nintendo Switch 的原生功能, 但总体上讲一套代码跨平台没问题.
11 changes: 4 additions & 7 deletions manuals/physics-messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ brief: When two objects collide, the engine will broadcast messages to all compo

# Collision messages

When two objects collide, the engine will broadcast messages to all components in both objects:
When two objects collide, the engine will broadcast messages to both objects:

## Collision response

The `"collision_response"` message is sent for all collision objects. It has the following fields set:
The `"collision_response"` message is sent when one of the colliding objects is of type "dynamic", "kinematic" or "static". It has the following fields set:

`other_id`
: the id of the instance the collision object collided with (`hash`)
Expand Down Expand Up @@ -40,7 +40,7 @@ end

## Contact point response

The `"contact_point_response"` message is sent when one of the colliding objects is dynamic or kinematic. It has the following fields set:
The `"contact_point_response"` message is sent when one of the colliding objects is of type "dynamic" or "kinematic" and the other is of type "dynamic", "kinematic" or "static". It has the following fields set:

`position`
: world position of the contact point (`vector3`).
Expand Down Expand Up @@ -94,10 +94,7 @@ end

## Trigger response

The `"trigger_response"` message is sent when a colliding object is of type "trigger".


In a trigger collision `"collision_response"` messages are sent. In addition, triggers also send a special `"trigger_response"` message when the collision begins and ends. The message has the following fields:
The `"trigger_response"` message is sent when one of the colliding objects is of type "trigger". The message will be sent once when the collision is first detected and then once more when the objects are no longer colliding. It has the following fields:

`other_id`
: the id of the instance the collision object collided with (`hash`).
Expand Down
Loading

0 comments on commit 007a64a

Please sign in to comment.