-
Notifications
You must be signed in to change notification settings - Fork 2
Creating GameObjects
mika edited this page Apr 26, 2018
·
2 revisions
-
void CreateLine(float x1, float y1, float z1, float x2, float y2, float z2)
- creates line object between two positions x,y,z to x,y,z
-
void CreateLine(string name, float x1, float y1, float z1, float x2, float y2, float z2)
- creates line object between two positions x,y,z to x,y,z and assigns name to the gameobject
-
void CreateCube(string target, float width, float height, float depth, float x, float y, float z)
- creates cube primitive
- note: has collider by default
-
void CreateQuad(string target, float width, float height, float x, float y, float z)
- creates quad primitive
- note: has collider by default
-
void CreateSphere(string target, float radius, float x, float y, float z)
- creates sphere primitive
- note: has collider by default
-
void void CreateLightSource(string name, float x, float y, float z, int r, int g, int b)
- creates point at light given location with color set to RGB (0-255)
-
void CreateLightSource(string name, float x, float y, float z
- creates point at light given location
-
void Clone(string source, string target)
- clones gameobject (to same position and rotation)
- wont clone if target gameobject already exists
-
void CreateGameObject(string newName)
- creates new empty gameobject
- this could be used as an invisible collider (use AddBoxCollider(..))
-
void CreateGameObject(string newName, float x, float y, float z)
- creates new empty gameobject at position
- this could be used as an invisible collider (use AddBoxCollider(..))