File tree Expand file tree Collapse file tree 3 files changed +4
-21
lines changed Expand file tree Collapse file tree 3 files changed +4
-21
lines changed Original file line number Diff line number Diff line change 1
1
import type RAPIER from '@dimforge/rapier3d'
2
2
import type { FScene3d } from '../FScene3d'
3
- import { F3dShapes } from '../types/F3dShapes'
4
- import type { FRigidBody3dOptions } from '../FRigidBody3d'
5
- import type { FCollider3dOptions } from '../FCollider3d'
6
3
import type { FCharacter3dOptions } from './FCharacter3d'
7
4
import { FCharacter3d } from './FCharacter3d'
8
5
@@ -26,18 +23,4 @@ export abstract class FCharacter3dKinematic extends FCharacter3d {
26
23
// Configure autostep
27
24
this . characterController . enableAutostep ( 0.5 , 0.1 , true )
28
25
}
29
-
30
- initRigidBody ( options ?: FRigidBody3dOptions ) : void {
31
- super . initRigidBody ( {
32
- ...options ,
33
- shape : F3dShapes . CAPSULE ,
34
- } )
35
- }
36
-
37
- initCollider ( options ?: FCollider3dOptions ) : void {
38
- super . initCollider ( {
39
- shape : F3dShapes . CAPSULE ,
40
- ...options ,
41
- } )
42
- }
43
26
}
Original file line number Diff line number Diff line change @@ -34,15 +34,15 @@ export class FCapsule extends FPolyhedron {
34
34
35
35
initRigidBody ( options ?: FRigidBody3dOptions ) : void {
36
36
super . initRigidBody ( {
37
- ...options ,
38
37
shape : F3dShapes . CAPSULE ,
38
+ ...options ,
39
39
} )
40
40
}
41
41
42
42
initCollider ( options ?: FCollider3dOptions ) : void {
43
43
super . initCollider ( {
44
- ...options ,
45
44
shape : F3dShapes . CAPSULE ,
45
+ ...options ,
46
46
} )
47
47
}
48
48
}
Original file line number Diff line number Diff line change @@ -34,15 +34,15 @@ export class FSphere extends FPolyhedron {
34
34
35
35
initRigidBody ( options ?: FRigidBody3dOptions ) : void {
36
36
super . initRigidBody ( {
37
- ...options ,
38
37
shape : F3dShapes . SPHERE ,
38
+ ...options ,
39
39
} )
40
40
}
41
41
42
42
initCollider ( options ?: FCollider3dOptions ) : void {
43
43
super . initCollider ( {
44
- ...options ,
45
44
shape : F3dShapes . SPHERE ,
45
+ ...options ,
46
46
} )
47
47
}
48
48
}
You can’t perform that action at this time.
0 commit comments