Basically I want one object to follow anothers transform and rotation exactly.
I can’t use a parent for this as there’s some smoothlookat going on that’d just balls the whole deal up.
Basically I want one object to follow anothers transform and rotation exactly.
I can’t use a parent for this as there’s some smoothlookat going on that’d just balls the whole deal up.
basically through copying the appropriate aspects
transform.position = target.transform.position;
...
these are structs and always go through “by value” so above are actual copies, not pointers
Thanks for your reply :]
Aaaaand Ima follow this up with an equally n00bish question ![]()
How do I call the other object, the object I want to copy the transform/rotation from?
Say my Target object is a cube named “Dude”
transform.position = Dude.transform.position;
Doesn’t seem to work, sorry I know these are stupid questions, but I’m an artist not a programmer ![]()
You need to have a variable called “Dude” in your script and then drag the Dude object to it in the inspector.