Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Physical Objects

Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
04-05-2007 18:08
So let's say I fire a virtual bullet at a virtual target and want it to virtually stop on impact with the target...

...so far...even by applying the recommended "make physical object stop moving" process...I've been pullin' my hair out while witnessing a 'bounce-back' from the collision object...

...I know there's got to be some sort of llApplyImpulse(exactly opposite the force exerted by colliding, non-physical object)...but...apparently I can't get it worked out...help?
_____________________
--AeonVox--

Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
04-05-2007 18:29
llSetStatus(STATUS_PHYSICS, FALSE);
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
04-05-2007 18:39
Doesn't work...still get bounceback...tried it :)
_____________________
--AeonVox--

Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
04-05-2007 18:57
Ok then... try something like:

CODE

collision (integer num) {
vector pos = llGetPos();
llSetStatus(STATUS_PHYSICS, FALSE);
llSetPos(pos);
}
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
04-05-2007 21:48
That might work...thx :) Dunno why I didn't put that together...hehe
_____________________
--AeonVox--

Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.