This weeks labs focused on moving non-physical and physical prims.
Here is the code used for non-physical. It compares distance between to locations, if this is above 0.001 meters, the loop repeats moving the prim 10 meters towards its goal.
For a physical prim, the story is very similar. Except we substitute llSetPos with llMoveToTarget. We also have an extra tau value to consider. This slows the object down the closer it is to its goal.
This weeks lab ties in nicely with my idea for the assignment. I would like to create a tilt maze similar to this-
It would naturally have more to it that this, including highscores for the quickest to finish. This will all depend on how HUDs work, so at the moment its only a postulation.



No comments:
Post a Comment