2017-09-12 22:42:36 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2021-03-23 13:40:34 +01:00
<class name= "StaticBody" inherits= "PhysicsBody" version= "3.3" >
2017-09-12 22:42:36 +02:00
<brief_description >
2019-01-07 10:02:04 +01:00
Static body for 3D physics.
2017-09-12 22:42:36 +02:00
</brief_description>
<description >
2019-06-22 01:04:47 +02:00
Static body for 3D physics. A static body is a simple body that is not intended to move. In contrast to [RigidBody], they don't consume any CPU resources as long as they don't move.
2020-01-26 20:16:49 +01:00
Additionally, a constant linear or angular velocity can be set for the static body, so even if it doesn't move, it affects other bodies as if it was moving (this is useful for simulating conveyor belts or conveyor wheels).
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>
<methods >
</methods>
<members >
2019-06-29 21:22:15 +02:00
<member name= "bounce" type= "float" setter= "set_bounce" getter= "get_bounce" >
2019-06-30 13:07:32 +02:00
The body's bounciness. Values range from [code]0[/code] (no bounce) to [code]1[/code] (full bounciness).
Deprecated, use [member PhysicsMaterial.bounce] instead via [member physics_material_override].
2017-09-12 22:42:36 +02:00
</member>
2019-06-29 12:38:01 +02:00
<member name= "constant_angular_velocity" type= "Vector3" setter= "set_constant_angular_velocity" getter= "get_constant_angular_velocity" default= "Vector3( 0, 0, 0 )" >
2019-06-22 01:04:47 +02:00
The body's constant angular velocity. This does not rotate the body, but affects other bodies that touch it, as if it was in a state of rotation.
2017-09-12 22:42:36 +02:00
</member>
2019-06-29 12:38:01 +02:00
<member name= "constant_linear_velocity" type= "Vector3" setter= "set_constant_linear_velocity" getter= "get_constant_linear_velocity" default= "Vector3( 0, 0, 0 )" >
2019-06-22 01:04:47 +02:00
The body's constant linear velocity. This does not move the body, but affects other bodies that touch it, as if it was in a state of movement.
2017-09-12 22:42:36 +02:00
</member>
2019-06-29 21:22:15 +02:00
<member name= "friction" type= "float" setter= "set_friction" getter= "get_friction" >
2019-06-22 01:04:47 +02:00
The body's friction, from 0 (frictionless) to 1 (full friction).
2019-06-30 13:07:32 +02:00
Deprecated, use [member PhysicsMaterial.friction] instead via [member physics_material_override].
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>
<constants >
</constants>
</class>