Static object colision detection

Post » Sat Feb 19, 2011 9:42 am

Hi

i have a moving object controled by player. But i don't want this object go throw rock/wall ...
I know it's doesn't exist a function to detect if an object colision is at cord X,Y,Z

But how i can detect it?
User avatar
Melanie Steinberg
 
Posts: 3365
Joined: Fri Apr 20, 2007 11:25 pm

Post » Sat Feb 19, 2011 10:06 am

Hi

i have a moving object controled by player. But i don't want this object go throw rock/wall ...
I know it's doesn't exist a function to detect if an object colision is at cord X,Y,Z

But how i can detect it?

No simple way.

There are a few complex ways. The one I am familiar with is using GetLOS.
You may check http://www.youtube.com/watch?v=nsRRsvYd_hc and use my scripts from " http://www.tesnexus.com/downloads/file.php?id=19980"

But the technique is not perfect due some engine characteristics, particularly when dealing with the ground.
User avatar
Hannah Whitlock
 
Posts: 3485
Joined: Sat Oct 07, 2006 12:21 am

Post » Sat Feb 19, 2011 12:33 am

I developed a method with an activator shooting silent inviable spell to "ping" the solid mesh surface. It is in my Hypothermia mod to detect if the player is under shelter from the rain.

see it here:

http://tesalliance.org/forums/index.php?/files/file/534-duke-patricks-basic-hypothermia-ii-rev-31/


It works really well for what/how I am using it, but it also is complex and not entirely 100 percent perfect...but what is in oblivion moding?




No simple way.

There are a few complex ways. The one I am familiar with is using GetLOS.
You may check http://www.youtube.com/watch?v=nsRRsvYd_hc and use my scripts from " http://www.tesnexus.com/downloads/file.php?id=19980"

But the technique is not perfect due some engine characteristics, particularly when dealing with the ground.

User avatar
SWagg KId
 
Posts: 3488
Joined: Sat Nov 17, 2007 8:26 am

Post » Fri Feb 18, 2011 9:14 pm

I will see your script and try what is better

I make a script to controle boat, i already did ground colision with GetTerrainHeight, but i don't want my boat is able to go across rock and bridge.
I need script to detect object but be able to go under bridge so have X,Y,Z detection
User avatar
Lucky Boy
 
Posts: 3378
Joined: Wed Jun 06, 2007 6:26 pm

Post » Sat Feb 19, 2011 7:57 am

I had download mod, but i don't found pat to detect colision.
Can you indic me where/how is script of detection?
User avatar
Nymph
 
Posts: 3487
Joined: Thu Sep 21, 2006 1:17 pm

Post » Fri Feb 18, 2011 10:50 pm

If you are asking about my GetLOS mod, the scripts are a0aTestGetLosSCRIPT and a0aTestGetLosMultiFrameSCRIPT.

The first try to detect collision on a single frame and the second across several frames.

The scripts move a tiny dog away from the player and keep testing if the player can still see it.
The moment the player cannot see it anymore, means that the dog has been moved thru and behind some obstacle and that is where collision would take place.
User avatar
Mr.Broom30
 
Posts: 3433
Joined: Thu Nov 08, 2007 2:05 pm


Return to IV - Oblivion