These forums are CLOSED. Please visit the new forums HERE
Turret Problems |
|
|
Keno Pontoppidan
Registered User
Join date: 20 Oct 2005
Posts: 75
|
03-26-2006 09:24
How do I get the llRotLookAt to rotate round the root center and not the linkset center?
|
|
Timmahy Widget
Registered User
Join date: 17 Mar 2006
Posts: 1
|
05-05-2006 00:04
I have been having the same problems with turrets I made, I think you need to get the rotation to the target, then use llSetRot() or llSetLocalRot() to rotate around the root prim.
If anyone has a way to calculate the rotation inorder for an object to face another, i would like to hear it (basically the same as llLookAt() but return the rotation instead of actually rotating it). |
|
Yumi Murakami
DoIt!AttachTheEarOfACat!
Join date: 27 Sep 2005
Posts: 6,860
|
05-05-2006 06:53
Cheat and add an invisible, phantom prim to the linkset that rebalances the centre to where you want it to be.
What? ![]() |
|
Catfart Grayson
Registered User
Join date: 16 May 2004
Posts: 264
|
05-05-2006 09:34
If anyone has a way to calculate the rotation inorder for an object to face another, i would like to hear it (basically the same as llLookAt() but return the rotation instead of actually rotating it). This link will take you to the Wiki page for llLookat, the getRotToPointAxisAt() function there will do this. _____________________
Cat
|