Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
PinJoint2D
繼承: Joint2D < Node2D < CanvasItem < Node < Object
將兩個 2D 物理體通過單點進行連接的物理關節,能夠讓它們自由旋轉。
說明
將兩個 2D 物理體通過單點進行連接的物理關節,能夠讓它們自由旋轉。例如可以將 RigidBody2D 連接到 StaticBody2D 上,從而建立鐘擺或蹺蹺板。
屬性
|
||
|
||
|
||
|
||
|
||
|
屬性說明
bool angular_limit_enabled = false 🔗
If true, the pin maximum and minimum rotation, defined by angular_limit_lower and angular_limit_upper are applied.
float angular_limit_lower = 0.0 🔗
最小的旋轉量。只有在angular_limit_enabled為 true 時才有效。
float angular_limit_upper = 0.0 🔗
最大的旋轉量。只有在angular_limit_enabled為 true 時才有效。
啟動後,馬達會使鉸鏈轉動。
float motor_target_velocity = 0.0 🔗
軸上馬達的目標速度。
這個值越高,與被牽制的兩個物體之間的的聯繫就越靈活。