PhysicsMaterial.xml 1.4 KB

12345678910111213141516171819202122232425
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="PhysicsMaterial" inherits="Resource" version="4.0">
  3. <brief_description>
  4. A material for physics properties.
  5. </brief_description>
  6. <description>
  7. Provides a means of modifying the collision properties of a [PhysicsBody3D].
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <members>
  12. <member name="absorbent" type="bool" setter="set_absorbent" getter="is_absorbent" default="false">
  13. If [code]true[/code], subtracts the bounciness from the colliding object's bounciness instead of adding it.
  14. </member>
  15. <member name="bounce" type="float" setter="set_bounce" getter="get_bounce" default="0.0">
  16. The body's bounciness. Values range from [code]0[/code] (no bounce) to [code]1[/code] (full bounciness).
  17. </member>
  18. <member name="friction" type="float" setter="set_friction" getter="get_friction" default="1.0">
  19. The body's friction. Values range from [code]0[/code] (frictionless) to [code]1[/code] (maximum friction).
  20. </member>
  21. <member name="rough" type="bool" setter="set_rough" getter="is_rough" default="false">
  22. If [code]true[/code], the physics engine will use the friction of the object marked as "rough" when two objects collide. If [code]false[/code], the physics engine will use the lowest friction of all colliding objects instead. If [code]true[/code] for both colliding objects, the physics engine will use the highest friction.
  23. </member>
  24. </members>
  25. </class>