|
LeVey Palou
Registered User
Join date: 31 Aug 2006
Posts: 131
|
07-25-2007 21:04
Here is a question...
I am building a vehicle using a non physical script the open source one from the forums.
Is it possible to make a non physical vehical collide with other in world objects? bump into walls, stop when it collides with a surface etc??
by the very name (non physical) i am guessing no but SL always surprises me...
Thanks!
|
|
Sean Martin
Yesnomaybe.
Join date: 13 Sep 2005
Posts: 584
|
07-26-2007 03:53
From: LeVey Palou Here is a question... I am building a vehicle using a non physical script the open source one from the forums. Is it possible to make a non physical vehical collide with other in world objects? bump into walls, stop when it collides with a surface etc?? by the very name (non physical) i am guessing no but SL always surprises me... Thanks! You could try llVolumeDetect but you need the vehicle to be phantom also I believe. You will probably need to keep track of the last vector where no collision was detected. Then if you collide with something just have the vehicle go back to the last "non colliding" vector. The problem with this is that it will also be seen. The vehicle will go forward then back up after it senses the object. Another solution might be using a sensor along with this to predict anything directly in front. Grab it's distance and figure how close you can get to it before it would collide. You would need to know your vehicles size to accuratly set the allowed distance of course. I'm not sure of any other way but those might work well enough.
|
|
Gregory McLeod
Registered User
Join date: 21 Oct 2006
Posts: 278
|
07-26-2007 12:28
From: LeVey Palou Here is a question...
I am building a vehicle using a non physical script the open source one from the forums.
Is it possible to make a non physical vehical collide with other in world objects? bump into walls, stop when it collides with a surface etc??
by the very name (non physical) i am guessing no but SL always surprises me...
Thanks! I am not sure but are you trying to create a simulated rat maze Rat?
|
|
LeVey Palou
Registered User
Join date: 31 Aug 2006
Posts: 131
|
07-26-2007 13:00
Gregory, no I am curious if is possible to make a non physical vehicle behave move like a physical vehicle. Instead of ghosting thru objects IE passing thru peoples house etc, it there is a way to make it react to other objects. In a sense a rat in a maze, but my interest is in vehicles, smiles
thanks
|