1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Add default physics variables

Co-authored-by: Yoruma <168607605+Mahoyomu@users.noreply.github.com>
This commit is contained in:
1F616EMO 2025-06-15 22:59:43 +08:00
parent 29cfb6efff
commit 3118efdf1c
No known key found for this signature in database
GPG key ID: EF52EFA8E05859B2
4 changed files with 45 additions and 0 deletions

View file

@ -8513,6 +8513,7 @@ child will follow movement and rotation of that bone.
* Returns `0` (no bits set) if the object is not a player.
* `set_physics_override(override_table)`
* Overrides the physics attributes of the player
* `core.DEFAULT_PHYSICS` contains the default values.
* `override_table` is a table with the following fields:
* `speed`: multiplier to *all* movement speed (`speed_*`) and
acceleration (`acceleration_*`) values (default: `1`)