Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Shooting from an Attachment or from Avatar Facing

Bloodsong Termagant
Manic Artist
Join date: 22 Jan 2007
Posts: 615
02-12-2009 08:35
heyas;

lets say i have an attachment pointing out at an angle from an avatar, like a wand or a torch or something. and i want to shoot bullets from the tip of this thing directly forward (ie: the way the avatar is facing/going.) isn't there a simple way to read the avatar's facing and apply that to the bullets as they are rezzed?
_____________________
Why Johnny Can't Rotate:
http://forums.secondlife.com/showthread.php?t=94705
Yumi Murakami
DoIt!AttachTheEarOfACat!
Join date: 27 Sep 2005
Posts: 6,860
02-12-2009 10:27
You can read the _avatar's_ facing, with llGetRot(), but not the _attachment's_. If you use an animation to make sure the avatar is pointing the gun straight forward, they'll be the same.