Skip to content

Commit

Permalink
uses physx shipped with engine on bytedance
Browse files Browse the repository at this point in the history
  • Loading branch information
minggo committed Sep 27, 2024
1 parent 39fb0a5 commit e6390e1
Show file tree
Hide file tree
Showing 8 changed files with 153 additions and 581 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ import { error, IVec3Like, Vec3 } from '../../../core';
import { PhysicsSystem } from '../../framework';
import { CharacterController } from '../../framework/components/character-controllers/character-controller';
import { IBaseCharacterController } from '../../spec/i-character-controller';
import { getWrapShape, PX, _trans, getJsTransform } from '../physx-adapter';
import { EFilterDataWord3 } from '../physx-enum';
import { getWrapShape, PX, _trans } from '../physx-adapter';
import { PhysXWorld } from '../physx-world';
import { PhysXShape } from '../shapes/physx-shape';
import { degreesToRadians } from '../../../core/utils/misc';
Expand Down
2 changes: 1 addition & 1 deletion cocos/physics/physx/joints/physx-configurable-joint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Copyright (c) 2023 Xiamen Yaji Software Co., Ltd.

/* eslint-disable @typescript-eslint/no-unsafe-return */

import { IVec3Like, Vec3, Quat, Mat4, error, math, toRadian } from '../../../core';
import { IVec3Like, Vec3, Quat, Mat4, toRadian } from '../../../core';
import { ConfigurableConstraint, EConstraintMode, EDriverMode } from '../../framework';
import { IConfigurableConstraint } from '../../spec/i-physics-constraint';
import { PX, _trans, getTempTransform, _pxtrans } from '../physx-adapter';
Expand Down
7 changes: 2 additions & 5 deletions cocos/physics/physx/joints/physx-fixed-joint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,11 @@
THE SOFTWARE.
*/

import { IVec3Like, Vec3, Quat, Mat4 } from '../../../core';
import { FixedConstraint, PhysicsSystem } from '../../framework';
import { Vec3, Quat, Mat4 } from '../../../core';
import { FixedConstraint } from '../../framework';
import { IFixedConstraint } from '../../spec/i-physics-constraint';
import { PX, _trans, getTempTransform, _pxtrans } from '../physx-adapter';
import { PxContactPairFlag } from '../physx-enum';
import { PhysXInstance } from '../physx-instance';
import { PhysXRigidBody } from '../physx-rigid-body';
import { PhysXWorld } from '../physx-world';
import { PhysXJoint } from './physx-joint';

const v3_0 = new Vec3();
Expand Down
2 changes: 1 addition & 1 deletion cocos/physics/physx/joints/physx-revolute-joint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/

import { IVec3Like, Mat4, Quat, Vec3 } from '../../../core';
import { HingeConstraint, PhysicsSystem } from '../../framework';
import { HingeConstraint } from '../../framework';
import { IHingeConstraint } from '../../spec/i-physics-constraint';
import { getTempTransform, PX, _pxtrans, _trans } from '../physx-adapter';
import { PhysXJoint } from './physx-joint';
Expand Down
Loading

0 comments on commit e6390e1

Please sign in to comment.