cubeforge 0.4.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +22 -22
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3294,7 +3294,7 @@ function createRigidBody(opts) {
3294
3294
  friction: 0.85,
3295
3295
  lockX: false,
3296
3296
  lockY: false,
3297
- lockRotation: false,
3297
+ lockRotation: true,
3298
3298
  isKinematic: false,
3299
3299
  dropThrough: 0,
3300
3300
  ccd: false,
@@ -3303,8 +3303,8 @@ function createRigidBody(opts) {
3303
3303
  linearDamping: 0,
3304
3304
  sleeping: false,
3305
3305
  sleepTimer: 0,
3306
- sleepThreshold: 5,
3307
- sleepDelay: 1,
3306
+ sleepThreshold: 0,
3307
+ sleepDelay: 0,
3308
3308
  density: 1,
3309
3309
  invMass: 0,
3310
3310
  invInertia: 0,
@@ -3342,7 +3342,7 @@ function createBoxCollider(width, height, opts) {
3342
3342
  mask: "*",
3343
3343
  slope: 0,
3344
3344
  oneWay: false,
3345
- friction: 0.5,
3345
+ friction: 0,
3346
3346
  restitution: 0,
3347
3347
  frictionCombineRule: "average",
3348
3348
  restitutionCombineRule: "average",
@@ -3362,7 +3362,7 @@ function createCircleCollider(radius, opts) {
3362
3362
  isTrigger: false,
3363
3363
  layer: "default",
3364
3364
  mask: "*",
3365
- friction: 0.5,
3365
+ friction: 0,
3366
3366
  restitution: 0,
3367
3367
  frictionCombineRule: "average",
3368
3368
  restitutionCombineRule: "average",
@@ -3383,7 +3383,7 @@ function createCapsuleCollider(width, height, opts) {
3383
3383
  isTrigger: false,
3384
3384
  layer: "default",
3385
3385
  mask: "*",
3386
- friction: 0.5,
3386
+ friction: 0,
3387
3387
  restitution: 0,
3388
3388
  frictionCombineRule: "average",
3389
3389
  restitutionCombineRule: "average",
@@ -3416,7 +3416,7 @@ function createConvexPolygonCollider(vertices, opts) {
3416
3416
  isTrigger: false,
3417
3417
  layer: "default",
3418
3418
  mask: "*",
3419
- friction: 0.5,
3419
+ friction: 0,
3420
3420
  restitution: 0,
3421
3421
  frictionCombineRule: "average",
3422
3422
  restitutionCombineRule: "average",
@@ -3438,7 +3438,7 @@ function createTriangleCollider(a, b, c, opts) {
3438
3438
  isTrigger: false,
3439
3439
  layer: "default",
3440
3440
  mask: "*",
3441
- friction: 0.5,
3441
+ friction: 0,
3442
3442
  restitution: 0,
3443
3443
  frictionCombineRule: "average",
3444
3444
  restitutionCombineRule: "average",
@@ -3460,7 +3460,7 @@ function createSegmentCollider(start, end, opts) {
3460
3460
  oneWay: false,
3461
3461
  layer: "default",
3462
3462
  mask: "*",
3463
- friction: 0.5,
3463
+ friction: 0,
3464
3464
  restitution: 0,
3465
3465
  frictionCombineRule: "average",
3466
3466
  restitutionCombineRule: "average",
@@ -3479,7 +3479,7 @@ function createHeightFieldCollider(heights, opts) {
3479
3479
  scaleY: 1,
3480
3480
  layer: "default",
3481
3481
  mask: "*",
3482
- friction: 0.5,
3482
+ friction: 0,
3483
3483
  restitution: 0,
3484
3484
  frictionCombineRule: "average",
3485
3485
  restitutionCombineRule: "average",
@@ -3497,7 +3497,7 @@ function createHalfSpaceCollider(opts) {
3497
3497
  normalY: -1,
3498
3498
  layer: "default",
3499
3499
  mask: "*",
3500
- friction: 0.5,
3500
+ friction: 0,
3501
3501
  restitution: 0,
3502
3502
  frictionCombineRule: "average",
3503
3503
  restitutionCombineRule: "average",
@@ -3515,7 +3515,7 @@ function createTriMeshCollider(vertices, indices, opts) {
3515
3515
  indices: [...indices],
3516
3516
  layer: "default",
3517
3517
  mask: "*",
3518
- friction: 0.5,
3518
+ friction: 0,
3519
3519
  restitution: 0,
3520
3520
  frictionCombineRule: "average",
3521
3521
  restitutionCombineRule: "average",
@@ -12890,7 +12890,7 @@ function RigidBody({
12890
12890
  vy = 0,
12891
12891
  lockX = false,
12892
12892
  lockY = false,
12893
- lockRotation = false,
12893
+ lockRotation = true,
12894
12894
  ccd = false,
12895
12895
  angularVelocity = 0,
12896
12896
  angularDamping = 0,
@@ -12955,7 +12955,7 @@ function BoxCollider({
12955
12955
  layer = "default",
12956
12956
  mask = "*",
12957
12957
  oneWay = false,
12958
- friction = 0.5,
12958
+ friction = 0,
12959
12959
  restitution = 0,
12960
12960
  frictionCombineRule = "average",
12961
12961
  restitutionCombineRule = "average",
@@ -13009,7 +13009,7 @@ function CircleCollider({
13009
13009
  isTrigger = false,
13010
13010
  layer = "default",
13011
13011
  mask = "*",
13012
- friction = 0.5,
13012
+ friction = 0,
13013
13013
  restitution = 0,
13014
13014
  frictionCombineRule = "average",
13015
13015
  restitutionCombineRule = "average",
@@ -13048,7 +13048,7 @@ function CapsuleCollider({
13048
13048
  isTrigger = false,
13049
13049
  layer = "default",
13050
13050
  mask = "*",
13051
- friction = 0.5,
13051
+ friction = 0,
13052
13052
  restitution = 0,
13053
13053
  frictionCombineRule = "average",
13054
13054
  restitutionCombineRule = "average",
@@ -14496,7 +14496,7 @@ function ConvexCollider({
14496
14496
  isTrigger = false,
14497
14497
  layer = "default",
14498
14498
  mask = "*",
14499
- friction = 0.5,
14499
+ friction = 0,
14500
14500
  restitution = 0,
14501
14501
  frictionCombineRule = "average",
14502
14502
  restitutionCombineRule = "average",
@@ -14536,7 +14536,7 @@ function TriangleCollider({
14536
14536
  isTrigger = false,
14537
14537
  layer = "default",
14538
14538
  mask = "*",
14539
- friction = 0.5,
14539
+ friction = 0,
14540
14540
  restitution = 0,
14541
14541
  frictionCombineRule = "average",
14542
14542
  restitutionCombineRule = "average",
@@ -14574,7 +14574,7 @@ function SegmentCollider({
14574
14574
  layer = "default",
14575
14575
  mask = "*",
14576
14576
  oneWay = false,
14577
- friction = 0.5,
14577
+ friction = 0,
14578
14578
  restitution = 0,
14579
14579
  frictionCombineRule = "average",
14580
14580
  restitutionCombineRule = "average",
@@ -14610,7 +14610,7 @@ function HeightFieldCollider({
14610
14610
  scaleY = 1,
14611
14611
  layer = "default",
14612
14612
  mask = "*",
14613
- friction = 0.5,
14613
+ friction = 0,
14614
14614
  restitution = 0,
14615
14615
  frictionCombineRule = "average",
14616
14616
  restitutionCombineRule = "average",
@@ -14645,7 +14645,7 @@ function HalfSpaceCollider({
14645
14645
  normalY = -1,
14646
14646
  layer = "default",
14647
14647
  mask = "*",
14648
- friction = 0.5,
14648
+ friction = 0,
14649
14649
  restitution = 0,
14650
14650
  frictionCombineRule = "average",
14651
14651
  restitutionCombineRule = "average",
@@ -14680,7 +14680,7 @@ function TriMeshCollider({
14680
14680
  indices,
14681
14681
  layer = "default",
14682
14682
  mask = "*",
14683
- friction = 0.5,
14683
+ friction = 0,
14684
14684
  restitution = 0,
14685
14685
  frictionCombineRule = "average",
14686
14686
  restitutionCombineRule = "average",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cubeforge",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "React-first 2D browser game engine",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",