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 {
8888 scale = input < NgtVector3 > ( [ 1 , 1 , 1 ] ) ;
8989 quaternion = input < NgtQuaternion > ( ) ;
9090 userData = input < NgtThreeElements [ 'ngt-object3D' ] [ 'userData' ] > ( ) ;
91- instances = input ( [ ] , {
91+ instances = input . required ( {
9292 alias : 'instancedRigidBodies' ,
9393 transform : ( value : Array < NgtrInstancedRigidBodyOptions > | '' ) => {
9494 if ( value === '' ) return [ ] ;
Original file line number Diff line number Diff line change @@ -436,7 +436,7 @@ export const rigidBodyDefaultOptions: NgtrRigidBodyOptions = {
436436 imports : [ NgtrAnyCollider ] ,
437437} )
438438export class NgtrRigidBody {
439- type = input ( 'dynamic' , {
439+ type = input . required ( {
440440 alias : 'rigidBody' ,
441441 transform : ( value : NgtrRigidBodyType | '' | undefined ) => {
442442 if ( value === '' || value === undefined ) return 'dynamic' as NgtrRigidBodyType ;
You can’t perform that action at this time.
0 commit comments