Komuso Tokugawa
Registered User
Join date: 3 Mar 2005
Posts: 93
|
07-01-2005 16:51
Hi, I'm trying to get a matrix style bullet/object effect but it seems to be going a bit screwy. I actually had it working at one stage but screwed it up and no matter what speed I set it at the objects seem to do weird things as soon as they are rezzed. ie: gBulletSpeed = 1.0 should do it but not any more.
rotation rot = llGetRot(); vector aim = llRot2Fwd(rot); vector pos = llGetPos() + gAimOffset + (aim * 1.0); llRezObject(gBulletName, pos, aim * gBulletSpeed, rot, gBulletDamage);
Usually this is set to 30.0, but I really want a slow motion flight path.
Are there some other physics params I need to adjust on the rezzed object if I do this?
ty, kt
|
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
|
07-01-2005 17:00
That seems to be all proper and ordered. Perhaps if you define "weird things"?
|
Cid Jacobs
Theoretical Meteorologist
Join date: 18 Jul 2004
Posts: 4,304
|
07-01-2005 17:07
Make sure you use llSetStatus(STATUS_PHYSICS,TRUE);....... I always forget that  .
|
Komuso Tokugawa
Registered User
Join date: 3 Mar 2005
Posts: 93
|
07-01-2005 18:32
I tested it with both revolver and arrow scripts, and in both cases they seem to bounce back at me straight away and disappear.
Weird...like I say, I had it working, and I'm sure it's back to what it was when it did work, but now I keep getting this behaviour.
If you have time, try just changing the speed in the basic revolver or bow and arrow script to 1.0 and see what happens.
ty, kt
|
Dianne Mechanique
Back from the Dead
Join date: 28 Mar 2005
Posts: 2,648
|
07-01-2005 18:35
From: Komuso Tokugawa Hi, I'm trying to get a matrix style bullet/object effect but it seems to be going a bit screwy. I actually had it working at one stage but screwed it up and no matter what speed I set it at the objects seem to do weird things as soon as they are rezzed. ie: gBulletSpeed = 1.0 should do it but not any more.
rotation rot = llGetRot(); vector aim = llRot2Fwd(rot); vector pos = llGetPos() + gAimOffset + (aim * 1.0); llRezObject(gBulletName, pos, aim * gBulletSpeed, rot, gBulletDamage);
Usually this is set to 30.0, but I really want a slow motion flight path.
Are there some other physics params I need to adjust on the rezzed object if I do this?
ty, kt Hiro Pendragon hakes an excellent Colt 45 with this action built in. He may know your answer. .
|
Komuso Tokugawa
Registered User
Join date: 3 Mar 2005
Posts: 93
|
07-01-2005 21:08
ty, I figured it out.
Buoyancy must be set to 1
|