Question by
jenshahn · Apr 17, 2017 at 01:08 PM ·
objectvariablesproceduralfilecoordinates
How to create procedural objects from files?
Hey guys,
I'm a little stumped here. I want to create a game object (sphere, cube etc) from variables (coordinates) I get from a text file (1 string for each coordinate with xyz values, velocity etc) that's constantly updated. Meaning my object could change (position, shape, velocity etc).
Now, 2 questions, how do I create objects from the coordinates? So far I've only found something called Procedural Primitives, but that seems awefully complicated for a simple cube or sphere.
And, how am I able to constantly read the file and update my objects? Do I simply put the function in FixedUpdate() or Update()?
Hope somebody can help, have a nice day.
Comment