JadeKnightblazer Posted February 25, 2015 Share Posted February 25, 2015 Rather then having to mess with a anim.zip, possible to rotate a object/prefab 180 deg after spawn? Link to comment https://forums.kleientertainment.com/forums/topic/51457-rotate-an-object-180-deg/ Share on other sites More sharing options...
JadeKnightblazer Posted February 25, 2015 Author Share Posted February 25, 2015 I think I might of figured it out... inst.Transform:SetRotation(180) yay? Link to comment https://forums.kleientertainment.com/forums/topic/51457-rotate-an-object-180-deg/#findComment-616778 Share on other sites More sharing options...
greenglacier Posted February 25, 2015 Share Posted February 25, 2015 <------ That's some nice triangle there m8. I'm liking this, here. Take a vial of Mercury(II) fulminate, or Hg(CNO)₂.ed likes. Link to comment https://forums.kleientertainment.com/forums/topic/51457-rotate-an-object-180-deg/#findComment-616783 Share on other sites More sharing options...
JadeKnightblazer Posted February 25, 2015 Author Share Posted February 25, 2015 (edited) It has been my power symbol since the age of 8, just drew it one day and it stuck (I am 29 now) Edited February 25, 2015 by JadeKnightblazer Link to comment https://forums.kleientertainment.com/forums/topic/51457-rotate-an-object-180-deg/#findComment-616785 Share on other sites More sharing options...
JadeKnightblazer Posted February 25, 2015 Author Share Posted February 25, 2015 Blah, sadly that worked for another problem but I have another one... I need this... local dest = Vector3(inst.components.fishingrod.fisherman.Transform:GetWorldPosition() ) local current = Vector3(troupplefish.Transform:GetWorldPosition() ) local direction = (dest - current):GetNormalized() local angle = math.acos(direction:Dot(Vector3(1, 0, 0) ) ) / DEGREES troupplefish.Transform:SetRotation(angle) troupplefish:FacePoint(dest)Rotated by 180 more... It seems the Prefab I have thinks its backwards T_T Fisherman is well the person fishingtroupplefish is the fish that spawns inside the pond Texture wise it faces the left <--- head tail ---> but using the follow up top, it always puts it tail facing the fisherman and not the head. Link to comment https://forums.kleientertainment.com/forums/topic/51457-rotate-an-object-180-deg/#findComment-616802 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now