Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Problem: Physical objects not being so physical

Senuka Harbinger
A-Life, one bit at a time
Join date: 24 Oct 2005
Posts: 491
12-06-2005 20:08
Since I've begun playing with my A-Life fish, I've noticed that occasionally a few fish will act like they are phantom even though they are not: swimming through walls, other fish, etc. any clue why this is? I'm hypothesising (spelling?) that it's because sometimes they move at an extremely fast speed over a short period of time when escaping a predator since it only seems to happen when the fish is moving very fast.
_____________________
My SLExchange shop

Typos are forgiven; desecrating the english language with reckless abandon and necrophilic acts is not.


The function is working perfectly fine. It's just not working the way you wanted it to work.
Ben Bacon
Registered User
Join date: 14 Jul 2005
Posts: 809
12-06-2005 20:36
Your hypothesis might well be correct. Collisions are calculated during each physics-engine frame (45 fps IIRC).

If an object can move far enough in 1/45 seconds such that its bounding box was on one side of another object's box, but it is now completely on the other side - then that object can "quantum tunnel" through.

From the physics engine's point of view, objects don't move from one place to another, they jump/snap/ripple through space - vanishing from here, and re-appearing velocity/(physics fps) units away.