mihai9323 / Jocoi

0 stars 0 forks source link

PlaceObjects #33

Closed mihai9323 closed 9 years ago

mihai9323 commented 9 years ago

this class will add objects on a specific line.

public variables:

public float xSize, ySize (defining the x and y by which the curve is multiplied) public AnimationCurve line; (defining the shape of the line) public GameObject[] objectsToPlace; (an array of the objects that need to be placed) public Vector3 rotation; (rotation of the line in 3d space) public bool placeOnStart; (if true the objects the function that places the objects will be called in start)

public functions: public void PlaceObjects(); (places the objects at an equal distance from one another on the xAxis of the animation curve, the values from the curve are multiplied by xSize and ySize to get the positions of the objects on the line)