Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

need to move objects with wand

Varun Blitz
Registered User
Join date: 22 May 2008
Posts: 62
06-19-2008 01:34
i am working in a big room i have made and want to move objects in the room to different locations which are pointed to by my wand.
what i was using is the gun script given in lsl wiki example. it fires a bullet and when that bullet collides with something, it gives the position and my object moves to that location.
but the problem is that my bullet crosses the walls and hits the ground outside the room. also it bounces off some objects without telling the position.
how to resolve this thing. can neone suggest something better ??
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
06-19-2008 02:37
Slow the bullet down, and make it a bit longer. That'll handle passing through walls.

Slowing the bullet down may also help with the "ricochet" problem, to some degree. But, that's often just sim lag and there's not much to be done about that.
Varun Blitz
Registered User
Join date: 22 May 2008
Posts: 62
06-19-2008 02:49
the functionality i wanted is just that when i press the mouse button, the object gets rezzed in the direction at which avatar is looking and maybe say at some fixed depth.
how can i accomplish that ??
llrot2fwd etc will help ??
Shadow Subagja
Registered User
Join date: 29 Apr 2007
Posts: 354
06-19-2008 10:00
which functionality are you going for, the one described in your first or second post?
Varun Blitz
Registered User
Join date: 22 May 2008
Posts: 62
06-19-2008 22:22
since i am working in a room, my objects must be rezzed only within the room at some depth in the direction i am pointing my wand.
can neone help ??