| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="PhysicsDirectBodyState3DExtension" inherits="PhysicsDirectBodyState3D" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | Provides virtual methods that can be overridden to create custom [PhysicsDirectBodyState3D] implementations. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | This class extends [PhysicsDirectBodyState3D] by providing additional virtual methods that can be overridden. When these methods are overridden, they will be called instead of the internal methods of the physics server. |
| 8 | Intended for use with GDExtension to create custom implementations of [PhysicsDirectBodyState3D]. |
| 9 | </description> |
| 10 | <tutorials> |
| 11 | </tutorials> |
| 12 | <methods> |
| 13 | <method name="_add_constant_central_force" qualifiers="virtual required"> |
| 14 | <return type="void" /> |
| 15 | <param index="0" name="force" type="Vector3" /> |
| 16 | <description> |
| 17 | </description> |
| 18 | </method> |
| 19 | <method name="_add_constant_force" qualifiers="virtual required"> |
| 20 | <return type="void" /> |
| 21 | <param index="0" name="force" type="Vector3" /> |
| 22 | <param index="1" name="position" type="Vector3" /> |
| 23 | <description> |
| 24 | </description> |
| 25 | </method> |
| 26 | <method name="_add_constant_torque" qualifiers="virtual required"> |
| 27 | <return type="void" /> |
| 28 | <param index="0" name="torque" type="Vector3" /> |
| 29 | <description> |
| 30 | </description> |
| 31 | </method> |
| 32 | <method name="_apply_central_force" qualifiers="virtual required"> |
| 33 | <return type="void" /> |
| 34 | <param index="0" name="force" type="Vector3" /> |
| 35 | <description> |
| 36 | </description> |
| 37 | </method> |
| 38 | <method name="_apply_central_impulse" qualifiers="virtual required"> |
| 39 | <return type="void" /> |
| 40 | <param index="0" name="impulse" type="Vector3" /> |
| 41 | <description> |
| 42 | </description> |
| 43 | </method> |
| 44 | <method name="_apply_force" qualifiers="virtual required"> |
| 45 | <return type="void" /> |
| 46 | <param index="0" name="force" type="Vector3" /> |
| 47 | <param index="1" name="position" type="Vector3" /> |
| 48 | <description> |
| 49 | </description> |
| 50 | </method> |
| 51 | <method name="_apply_impulse" qualifiers="virtual required"> |
| 52 | <return type="void" /> |
| 53 | <param index="0" name="impulse" type="Vector3" /> |
| 54 | <param index="1" name="position" type="Vector3" /> |
| 55 | <description> |
| 56 | </description> |
| 57 | </method> |
| 58 | <method name="_apply_torque" qualifiers="virtual required"> |
| 59 | <return type="void" /> |
| 60 | <param index="0" name="torque" type="Vector3" /> |
| 61 | <description> |
| 62 | </description> |
| 63 | </method> |
| 64 | <method name="_apply_torque_impulse" qualifiers="virtual required"> |
| 65 | <return type="void" /> |
| 66 | <param index="0" name="impulse" type="Vector3" /> |
| 67 | <description> |
| 68 | </description> |
| 69 | </method> |
| 70 | <method name="_get_angular_velocity" qualifiers="virtual required const"> |
| 71 | <return type="Vector3" /> |
| 72 | <description> |
| 73 | </description> |
| 74 | </method> |
| 75 | <method name="_get_center_of_mass" qualifiers="virtual required const"> |
| 76 | <return type="Vector3" /> |
| 77 | <description> |
| 78 | </description> |
| 79 | </method> |
| 80 | <method name="_get_center_of_mass_local" qualifiers="virtual required const"> |
| 81 | <return type="Vector3" /> |
| 82 | <description> |
| 83 | </description> |
| 84 | </method> |
| 85 | <method name="_get_collision_layer" qualifiers="virtual required const"> |
| 86 | <return type="int" /> |
| 87 | <description> |
| 88 | </description> |
| 89 | </method> |
| 90 | <method name="_get_collision_mask" qualifiers="virtual required const"> |
| 91 | <return type="int" /> |
| 92 | <description> |
| 93 | </description> |
| 94 | </method> |
| 95 | <method name="_get_constant_force" qualifiers="virtual required const"> |
| 96 | <return type="Vector3" /> |
| 97 | <description> |
| 98 | </description> |
| 99 | </method> |
| 100 | <method name="_get_constant_torque" qualifiers="virtual required const"> |
| 101 | <return type="Vector3" /> |
| 102 | <description> |
| 103 | </description> |
| 104 | </method> |
| 105 | <method name="_get_contact_collider" qualifiers="virtual required const"> |
| 106 | <return type="RID" /> |
| 107 | <param index="0" name="contact_idx" type="int" /> |
| 108 | <description> |
| 109 | </description> |
| 110 | </method> |
| 111 | <method name="_get_contact_collider_id" qualifiers="virtual required const"> |
| 112 | <return type="int" /> |
| 113 | <param index="0" name="contact_idx" type="int" /> |
| 114 | <description> |
| 115 | </description> |
| 116 | </method> |
| 117 | <method name="_get_contact_collider_object" qualifiers="virtual required const"> |
| 118 | <return type="Object" /> |
| 119 | <param index="0" name="contact_idx" type="int" /> |
| 120 | <description> |
| 121 | </description> |
| 122 | </method> |
| 123 | <method name="_get_contact_collider_position" qualifiers="virtual required const"> |
| 124 | <return type="Vector3" /> |
| 125 | <param index="0" name="contact_idx" type="int" /> |
| 126 | <description> |
| 127 | </description> |
| 128 | </method> |
| 129 | <method name="_get_contact_collider_shape" qualifiers="virtual required const"> |
| 130 | <return type="int" /> |
| 131 | <param index="0" name="contact_idx" type="int" /> |
| 132 | <description> |
| 133 | </description> |
| 134 | </method> |
| 135 | <method name="_get_contact_collider_velocity_at_position" qualifiers="virtual required const"> |
| 136 | <return type="Vector3" /> |
| 137 | <param index="0" name="contact_idx" type="int" /> |
| 138 | <description> |
| 139 | </description> |
| 140 | </method> |
| 141 | <method name="_get_contact_count" qualifiers="virtual required const"> |
| 142 | <return type="int" /> |
| 143 | <description> |
| 144 | </description> |
| 145 | </method> |
| 146 | <method name="_get_contact_impulse" qualifiers="virtual required const"> |
| 147 | <return type="Vector3" /> |
| 148 | <param index="0" name="contact_idx" type="int" /> |
| 149 | <description> |
| 150 | </description> |
| 151 | </method> |
| 152 | <method name="_get_contact_local_normal" qualifiers="virtual required const"> |
| 153 | <return type="Vector3" /> |
| 154 | <param index="0" name="contact_idx" type="int" /> |
| 155 | <description> |
| 156 | </description> |
| 157 | </method> |
| 158 | <method name="_get_contact_local_position" qualifiers="virtual required const"> |
| 159 | <return type="Vector3" /> |
| 160 | <param index="0" name="contact_idx" type="int" /> |
| 161 | <description> |
| 162 | </description> |
| 163 | </method> |
| 164 | <method name="_get_contact_local_shape" qualifiers="virtual required const"> |
| 165 | <return type="int" /> |
| 166 | <param index="0" name="contact_idx" type="int" /> |
| 167 | <description> |
| 168 | </description> |
| 169 | </method> |
| 170 | <method name="_get_contact_local_velocity_at_position" qualifiers="virtual required const"> |
| 171 | <return type="Vector3" /> |
| 172 | <param index="0" name="contact_idx" type="int" /> |
| 173 | <description> |
| 174 | </description> |
| 175 | </method> |
| 176 | <method name="_get_inverse_inertia" qualifiers="virtual required const"> |
| 177 | <return type="Vector3" /> |
| 178 | <description> |
| 179 | </description> |
| 180 | </method> |
| 181 | <method name="_get_inverse_inertia_tensor" qualifiers="virtual required const"> |
| 182 | <return type="Basis" /> |
| 183 | <description> |
| 184 | </description> |
| 185 | </method> |
| 186 | <method name="_get_inverse_mass" qualifiers="virtual required const"> |
| 187 | <return type="float" /> |
| 188 | <description> |
| 189 | </description> |
| 190 | </method> |
| 191 | <method name="_get_linear_velocity" qualifiers="virtual required const"> |
| 192 | <return type="Vector3" /> |
| 193 | <description> |
| 194 | </description> |
| 195 | </method> |
| 196 | <method name="_get_principal_inertia_axes" qualifiers="virtual required const"> |
| 197 | <return type="Basis" /> |
| 198 | <description> |
| 199 | </description> |
| 200 | </method> |
| 201 | <method name="_get_space_state" qualifiers="virtual required"> |
| 202 | <return type="PhysicsDirectSpaceState3D" /> |
| 203 | <description> |
| 204 | </description> |
| 205 | </method> |
| 206 | <method name="_get_step" qualifiers="virtual required const"> |
| 207 | <return type="float" /> |
| 208 | <description> |
| 209 | </description> |
| 210 | </method> |
| 211 | <method name="_get_total_angular_damp" qualifiers="virtual required const"> |
| 212 | <return type="float" /> |
| 213 | <description> |
| 214 | </description> |
| 215 | </method> |
| 216 | <method name="_get_total_gravity" qualifiers="virtual required const"> |
| 217 | <return type="Vector3" /> |
| 218 | <description> |
| 219 | </description> |
| 220 | </method> |
| 221 | <method name="_get_total_linear_damp" qualifiers="virtual required const"> |
| 222 | <return type="float" /> |
| 223 | <description> |
| 224 | </description> |
| 225 | </method> |
| 226 | <method name="_get_transform" qualifiers="virtual required const"> |
| 227 | <return type="Transform3D" /> |
| 228 | <description> |
| 229 | </description> |
| 230 | </method> |
| 231 | <method name="_get_velocity_at_local_position" qualifiers="virtual required const"> |
| 232 | <return type="Vector3" /> |
| 233 | <param index="0" name="local_position" type="Vector3" /> |
| 234 | <description> |
| 235 | </description> |
| 236 | </method> |
| 237 | <method name="_integrate_forces" qualifiers="virtual required"> |
| 238 | <return type="void" /> |
| 239 | <description> |
| 240 | </description> |
| 241 | </method> |
| 242 | <method name="_is_sleeping" qualifiers="virtual required const"> |
| 243 | <return type="bool" /> |
| 244 | <description> |
| 245 | </description> |
| 246 | </method> |
| 247 | <method name="_set_angular_velocity" qualifiers="virtual required"> |
| 248 | <return type="void" /> |
| 249 | <param index="0" name="velocity" type="Vector3" /> |
| 250 | <description> |
| 251 | </description> |
| 252 | </method> |
| 253 | <method name="_set_collision_layer" qualifiers="virtual required"> |
| 254 | <return type="void" /> |
| 255 | <param index="0" name="layer" type="int" /> |
| 256 | <description> |
| 257 | </description> |
| 258 | </method> |
| 259 | <method name="_set_collision_mask" qualifiers="virtual required"> |
| 260 | <return type="void" /> |
| 261 | <param index="0" name="mask" type="int" /> |
| 262 | <description> |
| 263 | </description> |
| 264 | </method> |
| 265 | <method name="_set_constant_force" qualifiers="virtual required"> |
| 266 | <return type="void" /> |
| 267 | <param index="0" name="force" type="Vector3" /> |
| 268 | <description> |
| 269 | </description> |
| 270 | </method> |
| 271 | <method name="_set_constant_torque" qualifiers="virtual required"> |
| 272 | <return type="void" /> |
| 273 | <param index="0" name="torque" type="Vector3" /> |
| 274 | <description> |
| 275 | </description> |
| 276 | </method> |
| 277 | <method name="_set_linear_velocity" qualifiers="virtual required"> |
| 278 | <return type="void" /> |
| 279 | <param index="0" name="velocity" type="Vector3" /> |
| 280 | <description> |
| 281 | </description> |
| 282 | </method> |
| 283 | <method name="_set_sleep_state" qualifiers="virtual required"> |
| 284 | <return type="void" /> |
| 285 | <param index="0" name="enabled" type="bool" /> |
| 286 | <description> |
| 287 | </description> |
| 288 | </method> |
| 289 | <method name="_set_transform" qualifiers="virtual required"> |
| 290 | <return type="void" /> |
| 291 | <param index="0" name="transform" type="Transform3D" /> |
| 292 | <description> |
| 293 | </description> |
| 294 | </method> |
| 295 | </methods> |
| 296 | </class> |