Bind PhysicsDirectBodyState3D::get_inverse_inertia_tensor
This commit is contained in:
parent
57ffc4d82c
commit
8dc15aac38
|
@ -226,6 +226,9 @@
|
||||||
<member name="inverse_inertia" type="Vector3" setter="" getter="get_inverse_inertia">
|
<member name="inverse_inertia" type="Vector3" setter="" getter="get_inverse_inertia">
|
||||||
The inverse of the inertia of the body.
|
The inverse of the inertia of the body.
|
||||||
</member>
|
</member>
|
||||||
|
<member name="inverse_inertia_tensor" type="Basis" setter="" getter="get_inverse_inertia_tensor">
|
||||||
|
The inverse of the inertia tensor of the body.
|
||||||
|
</member>
|
||||||
<member name="inverse_mass" type="float" setter="" getter="get_inverse_mass">
|
<member name="inverse_mass" type="float" setter="" getter="get_inverse_mass">
|
||||||
The inverse of the mass of the body.
|
The inverse of the mass of the body.
|
||||||
</member>
|
</member>
|
||||||
|
|
|
@ -159,6 +159,11 @@
|
||||||
<description>
|
<description>
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
|
<method name="_get_inverse_inertia_tensor" qualifiers="virtual const">
|
||||||
|
<return type="Basis" />
|
||||||
|
<description>
|
||||||
|
</description>
|
||||||
|
</method>
|
||||||
<method name="_get_inverse_mass" qualifiers="virtual const">
|
<method name="_get_inverse_mass" qualifiers="virtual const">
|
||||||
<return type="float" />
|
<return type="float" />
|
||||||
<description>
|
<description>
|
||||||
|
|
|
@ -60,6 +60,7 @@ void PhysicsDirectBodyState3DExtension::_bind_methods() {
|
||||||
|
|
||||||
GDVIRTUAL_BIND(_get_inverse_mass);
|
GDVIRTUAL_BIND(_get_inverse_mass);
|
||||||
GDVIRTUAL_BIND(_get_inverse_inertia);
|
GDVIRTUAL_BIND(_get_inverse_inertia);
|
||||||
|
GDVIRTUAL_BIND(_get_inverse_inertia_tensor);
|
||||||
|
|
||||||
GDVIRTUAL_BIND(_set_linear_velocity, "velocity");
|
GDVIRTUAL_BIND(_set_linear_velocity, "velocity");
|
||||||
GDVIRTUAL_BIND(_get_linear_velocity);
|
GDVIRTUAL_BIND(_get_linear_velocity);
|
||||||
|
|
|
@ -99,6 +99,7 @@ void PhysicsDirectBodyState3D::_bind_methods() {
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("get_inverse_mass"), &PhysicsDirectBodyState3D::get_inverse_mass);
|
ClassDB::bind_method(D_METHOD("get_inverse_mass"), &PhysicsDirectBodyState3D::get_inverse_mass);
|
||||||
ClassDB::bind_method(D_METHOD("get_inverse_inertia"), &PhysicsDirectBodyState3D::get_inverse_inertia);
|
ClassDB::bind_method(D_METHOD("get_inverse_inertia"), &PhysicsDirectBodyState3D::get_inverse_inertia);
|
||||||
|
ClassDB::bind_method(D_METHOD("get_inverse_inertia_tensor"), &PhysicsDirectBodyState3D::get_inverse_inertia_tensor);
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("set_linear_velocity", "velocity"), &PhysicsDirectBodyState3D::set_linear_velocity);
|
ClassDB::bind_method(D_METHOD("set_linear_velocity", "velocity"), &PhysicsDirectBodyState3D::set_linear_velocity);
|
||||||
ClassDB::bind_method(D_METHOD("get_linear_velocity"), &PhysicsDirectBodyState3D::get_linear_velocity);
|
ClassDB::bind_method(D_METHOD("get_linear_velocity"), &PhysicsDirectBodyState3D::get_linear_velocity);
|
||||||
|
@ -153,6 +154,7 @@ void PhysicsDirectBodyState3D::_bind_methods() {
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "total_angular_damp"), "", "get_total_angular_damp");
|
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "total_angular_damp"), "", "get_total_angular_damp");
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "total_linear_damp"), "", "get_total_linear_damp");
|
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "total_linear_damp"), "", "get_total_linear_damp");
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "inverse_inertia"), "", "get_inverse_inertia");
|
ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "inverse_inertia"), "", "get_inverse_inertia");
|
||||||
|
ADD_PROPERTY(PropertyInfo(Variant::BASIS, "inverse_inertia_tensor"), "", "get_inverse_inertia_tensor");
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "total_gravity"), "", "get_total_gravity");
|
ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "total_gravity"), "", "get_total_gravity");
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "center_of_mass"), "", "get_center_of_mass");
|
ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "center_of_mass"), "", "get_center_of_mass");
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "center_of_mass_local"), "", "get_center_of_mass_local");
|
ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "center_of_mass_local"), "", "get_center_of_mass_local");
|
||||||
|
|
Loading…
Reference in New Issue