Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spawning object with correct rotation at spline end
#1
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?
Reply


Messages In This Thread
Spawning object with correct rotation at spline end - by arrnav96 - 05-21-2019, 12:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Spline Spots from 2 samples. BitBlit 8 447 06-30-2026, 11:49 AM
Last Post: _Aka_
  Best way to duplicate a spline with an offset Kapistijn 8 1,940 04-12-2026, 03:18 PM
Last Post: _Aka_
Smile Constant speed along a spline? tfishell 1 843 11-13-2025, 11:32 AM
Last Post: _Aka_
  Create Game Object Renaming Options rickgplus 1 1,077 09-23-2025, 09:33 AM
Last Post: _Aka_

Forum Jump: