mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
FTI - Add multimesh_instances_reset_physics_interpolation()
This commit is contained in:
parent
4ad11b6af3
commit
1c8ef479b4
9 changed files with 36 additions and 0 deletions
|
|
@ -308,6 +308,10 @@ void MultiMesh::reset_instance_physics_interpolation(int p_instance) {
|
|||
RenderingServer::get_singleton()->multimesh_instance_reset_physics_interpolation(multimesh, p_instance);
|
||||
}
|
||||
|
||||
void MultiMesh::reset_instances_physics_interpolation() {
|
||||
RenderingServer::get_singleton()->multimesh_instances_reset_physics_interpolation(multimesh);
|
||||
}
|
||||
|
||||
void MultiMesh::set_physics_interpolated(bool p_interpolated) {
|
||||
RenderingServer::get_singleton()->multimesh_set_physics_interpolated(multimesh, p_interpolated);
|
||||
}
|
||||
|
|
@ -382,6 +386,7 @@ void MultiMesh::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("set_instance_custom_data", "instance", "custom_data"), &MultiMesh::set_instance_custom_data);
|
||||
ClassDB::bind_method(D_METHOD("get_instance_custom_data", "instance"), &MultiMesh::get_instance_custom_data);
|
||||
ClassDB::bind_method(D_METHOD("reset_instance_physics_interpolation", "instance"), &MultiMesh::reset_instance_physics_interpolation);
|
||||
ClassDB::bind_method(D_METHOD("reset_instances_physics_interpolation"), &MultiMesh::reset_instances_physics_interpolation);
|
||||
ClassDB::bind_method(D_METHOD("set_custom_aabb", "aabb"), &MultiMesh::set_custom_aabb);
|
||||
ClassDB::bind_method(D_METHOD("get_custom_aabb"), &MultiMesh::get_custom_aabb);
|
||||
ClassDB::bind_method(D_METHOD("get_aabb"), &MultiMesh::get_aabb);
|
||||
|
|
|
|||
|
|
@ -115,6 +115,7 @@ public:
|
|||
Color get_instance_custom_data(int p_instance) const;
|
||||
|
||||
void reset_instance_physics_interpolation(int p_instance);
|
||||
void reset_instances_physics_interpolation();
|
||||
|
||||
void set_physics_interpolated(bool p_interpolated);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue