Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz committed Jun 18, 2024
1 parent 1d40a85 commit 95a55fd
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion rapier3d/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
"dependencies": {
"wasm-pack": "^0.12.1"
}
}
}
18 changes: 9 additions & 9 deletions src.ts/dynamics/impulse_joint.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Rotation, Vector, VectorOps, RotationOps } from "../math";
import {Rotation, Vector, VectorOps, RotationOps} from "../math";
import {
RawGenericJoint,
RawImpulseJointSet,
Expand All @@ -7,10 +7,10 @@ import {
RawJointType,
RawMotorModel,
} from "../raw";
import { RigidBody, RigidBodyHandle } from "./rigid_body";
import { RigidBodySet } from "./rigid_body_set";
import {RigidBody, RigidBodyHandle} from "./rigid_body";
import {RigidBodySet} from "./rigid_body_set";
// #if DIM3
import { Quaternion } from "../math";
import {Quaternion} from "../math";
// #endif

/**
Expand Down Expand Up @@ -312,11 +312,11 @@ export class UnitImpulseJoint extends ImpulseJoint {
}
}

export class FixedImpulseJoint extends ImpulseJoint { }
export class FixedImpulseJoint extends ImpulseJoint {}

export class RopeImpulseJoint extends ImpulseJoint { }
export class RopeImpulseJoint extends ImpulseJoint {}

export class SpringImpulseJoint extends ImpulseJoint { }
export class SpringImpulseJoint extends ImpulseJoint {}

export class PrismaticImpulseJoint extends UnitImpulseJoint {
public rawAxis(): RawJointAxis {
Expand All @@ -331,7 +331,7 @@ export class RevoluteImpulseJoint extends UnitImpulseJoint {
}

// #if DIM3
export class GenericImpulseJoint extends ImpulseJoint { }
export class GenericImpulseJoint extends ImpulseJoint {}

export class SphericalImpulseJoint extends ImpulseJoint {
/* Unsupported by this alpha release.
Expand Down Expand Up @@ -371,7 +371,7 @@ export class JointData {
damping: number;
length: number;

private constructor() { }
private constructor() {}

/**
* Creates a new joint descriptor that builds a Fixed joint.
Expand Down
2 changes: 1 addition & 1 deletion src.ts/dynamics/integration_parameters.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RawIntegrationParameters } from "../raw";
import {RawIntegrationParameters} from "../raw";

export class IntegrationParameters {
raw: RawIntegrationParameters;
Expand Down
6 changes: 3 additions & 3 deletions src.ts/dynamics/multibody_joint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import {
} from "./impulse_joint";

// #if DIM3
import { Quaternion } from "../math";
import { SphericalImpulseJoint } from "./impulse_joint";
import {Quaternion} from "../math";
import {SphericalImpulseJoint} from "./impulse_joint";
// #endif

/**
Expand Down Expand Up @@ -182,7 +182,7 @@ export class UnitMultibodyJoint extends MultibodyJoint {
// }
}

export class FixedMultibodyJoint extends MultibodyJoint { }
export class FixedMultibodyJoint extends MultibodyJoint {}

export class PrismaticMultibodyJoint extends UnitMultibodyJoint {
public rawAxis(): RawJointAxis {
Expand Down
12 changes: 6 additions & 6 deletions src.ts/pipeline/query_pipeline.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RawQueryPipeline, RawRayColliderIntersection } from "../raw";
import {RawQueryPipeline, RawRayColliderIntersection} from "../raw";
import {
ColliderHandle,
ColliderSet,
Expand All @@ -10,8 +10,8 @@ import {
Shape,
ColliderShapeCastHit,
} from "../geometry";
import { IslandManager, RigidBodyHandle, RigidBodySet } from "../dynamics";
import { Rotation, RotationOps, Vector, VectorOps } from "../math";
import {IslandManager, RigidBodyHandle, RigidBodySet} from "../dynamics";
import {Rotation, RotationOps, Vector, VectorOps} from "../math";

// NOTE: must match the bits in the QueryFilterFlags on the Rust side.
/**
Expand Down Expand Up @@ -42,18 +42,18 @@ export enum QueryFilterFlags {
* Excludes all colliders not attached to a dynamic rigid-body.
*/
ONLY_DYNAMIC = QueryFilterFlags.EXCLUDE_FIXED |
QueryFilterFlags.EXCLUDE_KINEMATIC,
QueryFilterFlags.EXCLUDE_KINEMATIC,
/**
* Excludes all colliders not attached to a kinematic rigid-body.
*/
ONLY_KINEMATIC = QueryFilterFlags.EXCLUDE_DYNAMIC |
QueryFilterFlags.EXCLUDE_FIXED,
QueryFilterFlags.EXCLUDE_FIXED,
/**
* Exclude all colliders attached to a non-fixed rigid-body
* (this will not exclude colliders not attached to any rigid-body).
*/
ONLY_FIXED = QueryFilterFlags.EXCLUDE_DYNAMIC |
QueryFilterFlags.EXCLUDE_KINEMATIC,
QueryFilterFlags.EXCLUDE_KINEMATIC,
}

/**
Expand Down
20 changes: 10 additions & 10 deletions src.ts/pipeline/world.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,18 @@ import {
RigidBodyHandle,
RigidBodySet,
} from "../dynamics";
import { Rotation, Vector, VectorOps } from "../math";
import { PhysicsPipeline } from "./physics_pipeline";
import { QueryFilterFlags, QueryPipeline } from "./query_pipeline";
import { SerializationPipeline } from "./serialization_pipeline";
import { EventQueue } from "./event_queue";
import { PhysicsHooks } from "./physics_hooks";
import { DebugRenderBuffers, DebugRenderPipeline } from "./debug_render_pipeline";
import { KinematicCharacterController } from "../control";
import { Coarena } from "../coarena";
import {Rotation, Vector, VectorOps} from "../math";
import {PhysicsPipeline} from "./physics_pipeline";
import {QueryFilterFlags, QueryPipeline} from "./query_pipeline";
import {SerializationPipeline} from "./serialization_pipeline";
import {EventQueue} from "./event_queue";
import {PhysicsHooks} from "./physics_hooks";
import {DebugRenderBuffers, DebugRenderPipeline} from "./debug_render_pipeline";
import {KinematicCharacterController} from "../control";
import {Coarena} from "../coarena";

// #if DIM3
import { DynamicRayCastVehicleController } from "../control";
import {DynamicRayCastVehicleController} from "../control";

// #endif

Expand Down

0 comments on commit 95a55fd

Please sign in to comment.