mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Use RequiredParam/RequiredResult in some high value places
This commit is contained in:
@@ -256,6 +256,6 @@ void JoltPhysicsDirectBodyState3D::integrate_forces() {
|
||||
set_angular_velocity(angular_velocity);
|
||||
}
|
||||
|
||||
PhysicsDirectSpaceState3D *JoltPhysicsDirectBodyState3D::get_space_state() {
|
||||
RequiredResult<PhysicsDirectSpaceState3D> JoltPhysicsDirectBodyState3D::get_space_state() {
|
||||
return body->get_space()->get_direct_state();
|
||||
}
|
||||
|
||||
@@ -115,5 +115,5 @@ public:
|
||||
|
||||
virtual void integrate_forces() override;
|
||||
|
||||
virtual PhysicsDirectSpaceState3D *get_space_state() override;
|
||||
virtual RequiredResult<PhysicsDirectSpaceState3D> get_space_state() override;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user