Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Sparkys collision dll problem

Author
Message
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 29th Nov 2005 05:54
hey,

ive been using the collision dll for a while and decided to use it in my 2d sliding collision routine, currently im just pointing the plain at the 2nd but later i will move the verts so i dont get problems when it goes 90degrees for instance, the problem i have is that the intersect object doesnt seem to work for the whole plain it only works on about 50 units around the model centere then the collision seems to do nothing, you can rem the collision and use the dbp built in one as comparison and it works but i need the surface normals aswell.



and im not sure if my explanation works but running the code may be of more use, basically i plot lines using 2X x,y positions and cast a ray between the players old/new positions and use cls if there was a collision so you can see a flash.


Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 29th Nov 2005 22:42
Yes there does appear to be a problem there, it's not registering the scaling at all.

Firstly using 'fix object pivot' seems to invert some of the object sizes, object size x() returns negative results, which is what the dll uses to work out if an object has been scaled. But still, removing the fix object pivot doesn't seem to fix the scaling problem (it does solve the problem in the latest version I've sent to TGC).

Until that version is released the best work around I can suggest is to re-setup the object instead of updating it. This will grab the new vertex positions so you don't have to use allowObjectScaling



There should be very little overhead in doing this for box objects.

Login to post a reply

Server time is: 2024-11-24 07:08:58
Your offset time is: 2024-11-24 07:08:58