Skip to content

Commit

Permalink
Made the lauchpad activate the object when spawning
Browse files Browse the repository at this point in the history
  • Loading branch information
loco-choco committed Nov 20, 2022
1 parent 5b4d02b commit 30b3dd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CustomShipLib/ShipSpawner/LauchPadSpawn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public bool SpawnShip(ShipData shipData, bool spawnEvenIfNotAllowed)
Destroy(g);
return false;
}
g.SetActive(true);

OWRigidbody r = g.GetAttachedOWRigidbody();
r.WarpToPositionRotation(transform.position, transform.rotation);
r.SetVelocity(rigidbody.GetPointVelocity(transform.position));
Expand Down
2 changes: 1 addition & 1 deletion CustomShipLib/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"author": "Locochoco",
"name": "Slate's Shipyard",
"uniqueName": "Locochoco.SlateShipyard",
"version": "0.1.8",
"version": "0.1.9",
"owmlVersion": "2.0.0"
}

0 comments on commit 30b3dd2

Please sign in to comment.