05-21-2019, 12:32 PM
Hi,
I'm trying to instantiate a drill bit prefab at the end of an oil drill line spline. The spline has 4 control points in total and I would like to instantiate the prefab at control point 4.
I have somehow gotten around instantiating the prefab at the right spot, but can't figure out from examples or API how to make it point to the same direction as the spline's point 4.
This is what I mean -
As the spline end point continuously changes it's facing direction, I want the yellow object (drill bit) to be facing the correct direction as the spline.
How do I go about this?
I'm trying to instantiate a drill bit prefab at the end of an oil drill line spline. The spline has 4 control points in total and I would like to instantiate the prefab at control point 4.
I have somehow gotten around instantiating the prefab at the right spot, but can't figure out from examples or API how to make it point to the same direction as the spline's point 4.
This is what I mean -
As the spline end point continuously changes it's facing direction, I want the yellow object (drill bit) to be facing the correct direction as the spline.
How do I go about this?