Skip to content

Commit

Permalink
return corect inertia
Browse files Browse the repository at this point in the history
  • Loading branch information
minggo committed Dec 6, 2023
1 parent fad2b8f commit 0c70184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cocos/physics-2d/framework/components/rigid-body-2d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ export class RigidBody2D extends Component {
*/
getInertia (): number {
if (this._body) {
this._body.getInertia();
return this._body.getInertia();
}
return 0;
}
Expand Down

0 comments on commit 0c70184

Please sign in to comment.