File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ export class NgtrInstancedRigidBodies {
88
88
scale = input < NgtVector3 > ( [ 1 , 1 , 1 ] ) ;
89
89
quaternion = input < NgtQuaternion > ( ) ;
90
90
userData = input < NgtThreeElements [ 'ngt-object3D' ] [ 'userData' ] > ( ) ;
91
- instances = input ( [ ] , {
91
+ instances = input . required ( {
92
92
alias : 'instancedRigidBodies' ,
93
93
transform : ( value : Array < NgtrInstancedRigidBodyOptions > | '' ) => {
94
94
if ( value === '' ) return [ ] ;
Original file line number Diff line number Diff line change @@ -436,7 +436,7 @@ export const rigidBodyDefaultOptions: NgtrRigidBodyOptions = {
436
436
imports : [ NgtrAnyCollider ] ,
437
437
} )
438
438
export class NgtrRigidBody {
439
- type = input ( 'dynamic' , {
439
+ type = input . required ( {
440
440
alias : 'rigidBody' ,
441
441
transform : ( value : NgtrRigidBodyType | '' | undefined ) => {
442
442
if ( value === '' || value === undefined ) return 'dynamic' as NgtrRigidBodyType ;
You can’t perform that action at this time.
0 commit comments