gg.easy.airship 0.1.2146 → 0.1.2147

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.
@@ -53,7 +53,8 @@
53
53
  "GUID:3b5390adca4e2bb4791cb930316d6f3e",
54
54
  "GUID:725ee7191c021de4dbf9269590ded755",
55
55
  "GUID:2a0340569ab0e1245a38e0d6c7b2529b",
56
- "GUID:befe48b9a36afc04ea625c93daad910e"
56
+ "GUID:befe48b9a36afc04ea625c93daad910e",
57
+ "GUID:21d1eb854b91ade49bc69a263d12bee2"
57
58
  ],
58
59
  "includePlatforms": [],
59
60
  "excludePlatforms": [],
@@ -22,7 +22,8 @@
22
22
  "GUID:15fc0a57446b3144c949da3e2b9737a9",
23
23
  "GUID:ec266f293c0b4f6c9d06847488a52a0c",
24
24
  "GUID:325984b52e4128546bc7558552f8b1d2",
25
- "GUID:befe48b9a36afc04ea625c93daad910e"
25
+ "GUID:befe48b9a36afc04ea625c93daad910e",
26
+ "GUID:21d1eb854b91ade49bc69a263d12bee2"
26
27
  ],
27
28
  "includePlatforms": [],
28
29
  "excludePlatforms": [],
@@ -14,6 +14,7 @@ using UnityEngine.Experimental.Rendering;
14
14
  using UnityEngine.Rendering;
15
15
  using UnityEngine.Rendering.Universal;
16
16
  using UnityEngine.SceneManagement;
17
+ using UnityEngine.Splines;
17
18
  using UnityEngine.UI;
18
19
  using UnityEngine.UIElements;
19
20
  using LightType = UnityEngine.LightType;
@@ -184,6 +185,12 @@ namespace Luau {
184
185
  [typeof(MeshFilter)] = LuauContextAll,
185
186
  [typeof(Sprite)] = LuauContextAll,
186
187
  [typeof(DecalProjector)] = LuauContextAll,
188
+ //Spline
189
+ [typeof(Spline)] = LuauContextAll,
190
+ [typeof(BezierCurve)] = LuauContextAll,
191
+ [typeof(CurveUtility)] = LuauContextAll,
192
+ [typeof(SplineUtility)] = LuauContextAll,
193
+ [typeof(BezierKnot)] = LuauContextAll,
187
194
 
188
195
  // Rigging
189
196
  [typeof(TwoBoneIKConstraint)] = LuauContextAll,
@@ -659,10 +659,10 @@ namespace Code.Player.Character.MovementSystems.Character {
659
659
  newVelocity += pendingImpulse;
660
660
  currentMoveSnapshot.airborneFromImpulse = !grounded || pendingImpulse.y > .01f;
661
661
  pendingImpulse = Vector3.zero;
662
- if (isImpulsing) {
663
- // print(" isImpulsing: " + isImpulsing + " impulse force: " + this.pendingImpulse + "New Vel: " +
664
- // newVelocity);
665
- }
662
+ // if (isImpulsing) {
663
+ // print(" isImpulsing: " + isImpulsing + " impulse force: " + pendingImpulse + "New Vel: " +
664
+ // newVelocity);
665
+ // }
666
666
  }
667
667
 
668
668
  #endregion
@@ -1465,13 +1465,13 @@ namespace Code.Player.Character.MovementSystems.Character {
1465
1465
  if (mode == NetworkedStateSystemMode.Observer) {
1466
1466
  return;
1467
1467
  }
1468
-
1468
+
1469
1469
  if (!_smoothLookVector) {
1470
1470
  var lookTarget = new Vector3(lookVector.x, 0, lookVector.z);
1471
1471
  if (lookTarget == Vector3.zero) {
1472
1472
  lookTarget = new Vector3(0, 0, .01f);
1473
1473
  }
1474
-
1474
+
1475
1475
  //Instantly rotate for owner
1476
1476
  airshipTransform.rotation = Quaternion.LookRotation(lookTarget).normalized;
1477
1477
  } else {
@@ -1499,6 +1499,7 @@ namespace Code.Player.Character.MovementSystems.Character {
1499
1499
  #region Helpers
1500
1500
 
1501
1501
  private void SnapToY(float newY) {
1502
+ //print("Snapping to Y: " + newY);
1502
1503
  var newPos = rb.position;
1503
1504
  newPos.y = newY;
1504
1505
  rb.position = newPos;
@@ -1707,7 +1708,7 @@ namespace Code.Player.Character.MovementSystems.Character {
1707
1708
  }
1708
1709
 
1709
1710
  public void AddImpulse(Vector3 impulse) {
1710
- // print("Adding impulse: " + impulse);
1711
+ //print("Adding impulse: " + impulse);
1711
1712
  if (mode == NetworkedStateSystemMode.Observer && isServer) {
1712
1713
  RpcAddImpulse(impulse);
1713
1714
  return;
@@ -47,6 +47,7 @@ using UnityEngine.VFX;
47
47
  using Code.Player.Accessories;
48
48
  using Code.Player.Character.MovementSystems.Character;
49
49
  using Code.Player.Character.NetworkedMovement;
50
+ using UnityEngine.Splines;
50
51
 
51
52
  public class TypeGenerator : MonoBehaviour
52
53
  {
@@ -249,6 +250,14 @@ public class TypeGenerator : MonoBehaviour
249
250
  typeof(Grid),
250
251
  typeof(UIScrollRectEventBubbler),
251
252
  typeof(VisualEffect),
253
+
254
+ // Splines
255
+ typeof(BezierCurve),
256
+ typeof(BezierKnot),
257
+ typeof(CurveUtility),
258
+ typeof(Spline),
259
+ typeof(SplineAnimate),
260
+ typeof(SplineUtility),
252
261
 
253
262
  // Airship
254
263
  typeof(AnimationEventData),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gg.easy.airship",
3
- "version": "0.1.2146",
3
+ "version": "0.1.2147",
4
4
  "displayName": "Airship",
5
5
  "unity": "2021.3",
6
6
  "unityRelease": "12f1",
@@ -38,7 +38,8 @@
38
38
  "com.unity.ugui": "3.0.0",
39
39
  "com.unity.visualscripting": "1.9.5",
40
40
  "com.unity.inputsystem": "1.13.0",
41
- "com.unity.visualeffectgraph": "17.0.3"
41
+ "com.unity.visualeffectgraph": "17.0.3",
42
+ "com.unity.splines": "2.8.1"
42
43
  },
43
44
  "type": "library",
44
45
  "description": "Easy Airship"