Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Sticky Camera!

Corporal Candour
Registered User
Join date: 3 Sep 2005
Posts: 38
03-23-2006 16:48
Hello, using the new camera functions I was wondering if it were possible to, for example, shoot a bullet that sticks to a wall and then the camera moves to the bullet, like in Splinter Cell how Sam Fisher has a sticky camera...we see it from the camera's point of view when the camera is stuck to the wall.
Feynt Mistral
Registered User
Join date: 24 Sep 2005
Posts: 551
03-23-2006 17:46
You mean kind of like the trap cam mode the example script shows off, or the drop cam mode? In both modes the camera stays fixed in space while the player moves around. In drop cam mode the camera tracks the player as they move for 5 seconds, then follows after them. In trap cam mode the camera stays fixed in place, looking at the same point in space while the player moves and every 4 seconds the camera shifts to be 4m over, up, and out from the player (llGetPos() + <4,4,4>;).

I've also tried my hand at making a "Resident Evil" camera, but it's still a work in progress. The camera currently situates itself inside of objects. While cameras don't show the inside of most objects, I'm working on making it situate itself outside of all objects it attempts to center around.

Addendum:
I realize I didn't really give a definitive answer on this. >.>;
Yes, you can, just have the bullet call back to the gun telling it where it hit in space and then move the camera to that location.
_____________________
I dream of a better tomorrow in SL!
You should too. Visit, vote, voice opinions.
Support CSG! Tell LL how much it would mean to subtract one prim from another!
Prim Animation! Stop by and say something about it, show your support!
Corporal Candour
Registered User
Join date: 3 Sep 2005
Posts: 38
03-23-2006 17:52
Yeah, I'm thinking more of a trap cam instance...however I want it to automatically switch to trap cam...how do I do this?