2017-09-12 22:42:36 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-03-01 01:44:37 +01:00
<class name= "StaticBody3D" inherits= "PhysicsBody3D" version= "4.1" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2017-09-12 22:42:36 +02:00
<brief_description >
2023-04-28 22:59:03 +02:00
A 3D physics body that can't be moved by external forces. When moved manually, it doesn't affect other bodies in its path.
2017-09-12 22:42:36 +02:00
</brief_description>
<description >
2023-04-28 22:59:03 +02:00
A static 3D physics body. It can't be moved by external forces or contacts, but can be moved manually by other means such as code, [AnimationPlayer]s (with [member AnimationPlayer.playback_process_mode] set to [code]ANIMATION_PROCESS_PHYSICS[/code]), and [RemoteTransform3D].
When [StaticBody3D] is moved, it is teleported to its new position without affecting other physics bodies in its path. If this is not desired, use [AnimatableBody3D] instead.
[StaticBody3D] is useful for completely static objects like floors and walls, as well as moving surfaces like conveyor belts and circular revolving platforms (by using [member constant_linear_velocity] and [member constant_angular_velocity]).
2017-09-12 22:42:36 +02:00
</description>
<tutorials >
2020-10-01 10:34:47 +02:00
<link title= "3D Physics Tests Demo" > https://godotengine.org/asset-library/asset/675</link>
<link title= "Third Person Shooter Demo" > https://godotengine.org/asset-library/asset/678</link>
<link title= "3D Voxel Demo" > https://godotengine.org/asset-library/asset/676</link>
2017-09-12 22:42:36 +02:00
</tutorials>
<members >
2019-09-24 19:45:03 +02:00
<member name= "constant_angular_velocity" type= "Vector3" setter= "set_constant_angular_velocity" getter= "get_constant_angular_velocity" default= "Vector3(0, 0, 0)" >
2021-08-30 20:48:43 +02:00
The body's constant angular velocity. This does not rotate the body, but affects touching bodies, as if it were rotating.
2017-09-12 22:42:36 +02:00
</member>
2019-09-24 19:45:03 +02:00
<member name= "constant_linear_velocity" type= "Vector3" setter= "set_constant_linear_velocity" getter= "get_constant_linear_velocity" default= "Vector3(0, 0, 0)" >
2021-08-30 20:48:43 +02:00
The body's constant linear velocity. This does not move the body, but affects touching bodies, as if it were moving.
2017-09-12 22:42:36 +02:00
</member>
2019-07-15 20:42:47 +02:00
<member name= "physics_material_override" type= "PhysicsMaterial" setter= "set_physics_material_override" getter= "get_physics_material_override" >
2019-10-06 20:54:58 +02:00
The physics material override for the body.
If a material is assigned to this property, it will be used instead of any other physics material, such as an inherited one.
2018-07-26 11:56:21 +02:00
</member>
2017-09-12 22:42:36 +02:00
</members>
</class>