mardi 28 novembre 2017

Basic Line, Point and Transform Debug code

Working with KSP multiple coordinate systems can be a pain and sometime a quick drawing on screen help understanding what is going on. Here is class to draw some debugging lines, point and transforms.

https://gist.github.com/sarbian/9c4cc56f01cce07837901d3f2f22029b

Licence : public domain.

Calling it is as simple as a line in an Update()

DebugDrawer.DebugLine(FlightGlobals.ActiveVessel.transform.position, Planetarium.fetch.Home.transform.position, Color.yellow);

DebugDrawer.DebugPoint(Vector3.zero, Color.green);

DebugDrawer.DebugTransforms(FlightGlobals.ActiveVessel.transform);Basic Line, Point and Transform Debug code

---------------------------------------------------------------------------
Visit this link to stop these emails: http://zpr.io/nfAVj

Aucun commentaire:

Enregistrer un commentaire