Skip to content

Commit

Permalink
eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
lealzhan committed Sep 26, 2023
1 parent 7d69521 commit f3a107e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cocos/physics-2d/box2d-wasm/joints/wheel-joint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ import { toRadian } from '../../../core';

export class B2WheelJoint extends B2Joint implements IWheelJoint {
setFrequency (v: number): void {
(this._b2joint as B2.WheelJoint).SetSpringFrequencyHz(v);
(this._b2joint as B2.WheelJoint as any).SetSpringFrequencyHz(v);
}
setDampingRatio (v: number): void {
(this._b2joint as B2.WheelJoint).SetSpringDampingRatio(v);
(this._b2joint as B2.WheelJoint as any).SetSpringDampingRatio(v);
}

// motor
Expand Down

0 comments on commit f3a107e

Please sign in to comment.