MTM2.com

A forum for mtm2 discussion
FAQ :: Search :: Members :: Groups :: Register
Login
It is currently Thu Sep 20, 2018 11:10 pm



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Patch question/idea
PostPosted: Tue Feb 20, 2018 12:06 am 
Member
User avatar

Joined: Wed May 14, 2008 7:20 am
Posts: 449
Location: Behind you
Was working in a track the other day and I had an idea. Any of us who have done tracks before know about the frustration of placing hit boxes on objects. I was wondering if it would be possible to rework the code to allow objects to react like normal ground, instead of spawning an invisible box around the object by default. I have a feeling this would require tampering with the engine itself but I thought I'd ask.

_________________
Celebrating 10-ish years of MTM2 (I think...)

Admin of the MTM2 Draggers facebook page, find it here!
https://m.facebook.com/groups/337032006 ... =bookmarks


Top
 Profile  
 
 Post subject: Re: Patch question/idea
PostPosted: Wed Feb 21, 2018 6:26 pm 
Member
User avatar

Joined: Mon Jul 02, 2001 2:01 pm
Posts: 1306
Location: Lost in Translation
I doubt it. Not any time soon. The square "hitbox" is simply the way games work (or used to work until recent game engines). I know Unreal 4 has a system in place to fix this but they spent a whole segment of coding on this feature alone. Whenever you import objects in their editor the hitbox will be square as well and you need to specifically set the engine to do some calculations to fix this.


Top
 Profile  
 
 Post subject: Re: Patch question/idea
PostPosted: Thu Feb 22, 2018 10:22 pm 
MTM2 Fanatic

Joined: Thu Sep 04, 2003 1:48 pm
Posts: 677
Per-polygonal collision examples do exist, however it would be pretty hard to adapt the existing engine to use them (full disclosure: I haven't seen the source, but I do program). This is made harder by the fact that in addition to creating and storing collision data, all other collision systems in the game (e.g. bounding boxes, tires, scrape-point-based truck bodies, and even other complex meshes) would have to be modified to be able to interact properly with a mesh-based collision hull. This actually requires some pretty advanced knowledge of physics-based mathematics to figure out.

Now, that being said. There are two things that may in fact be worth looking into, although don't quote me on this as I cannot speak for O Great Leader Fila. The .sit files contain what appears to be unfinished support for cylindrical collision primitives, which are at least not boxes or wedges ("ramps"). The other thing: Has anybody ever played with the "Collide (Facing)" object type before? It's really weird. Maybe I'm mistaken, but it almost feels like its collision boundary is either cylindrical or some kind of concave hull. I never tried using it for trees (one set of polys for the leaves and one set for the trunk, I assume, is what it would take) but it might be interesting to look at the code for that.


Top
 Profile  
 
 Post subject: Re: Patch question/idea
PostPosted: Sun Mar 04, 2018 2:47 am 
Member
User avatar

Joined: Mon Jul 02, 2001 2:01 pm
Posts: 1306
Location: Lost in Translation
I have started taking a very extensive C++ course that also dabbles a lot with UE4 (it's basically a mix of UE4 and C++). I am hoping to use this to extend my knowledge of programming because let's face it, when I started doing this I had no idea what I was doing. So it's going to take a while but hopefully soon I'll be able to progress the game even more (and add requested features and more importantly port it to Dx9/OpenGL. (and preferably do away with the bitmap menus and have an in-game 3D menu instead).


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group