The problem with the Radius system is that it only allows objects to a whole shared system that defines both length + width, but not separate variants. Because of this, an object can't have a rectangular hitbox, which forces modders to make objects as long as they are wide.
Essentially I am asking is that a option for two new separate properties (length + width) alongside the existent radius, and height properties, so Modder's and developers can use rectangular hitboxes, and thus develop new objects to use them (i.e 3d crate decorations, Military Tanks, etc)
Alternative collision support (Length + Width)
Moderator: GZDoom Developers
-
- Posts: 384
- Joined: Mon May 09, 2016 1:38 am
- Location: Anywhere but here
- Contact:
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49071
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Alternative collision support (Length + Width)
Sorry, but that's beyond the Doom engine's capabilities. That 'square hitbox' is so deeply ingrained into the logic that it cannot be changed, short of a complete physics rewrite.
Re: Alternative collision support (Length + Width)
The thing to keep in mind is that a Doom hitbox doesn't rotate. So having separate width and length would not be as handy as you might think.
You're better off giving it a small radius and overriding its CanCollideWith function if you want to be creative.
You're better off giving it a small radius and overriding its CanCollideWith function if you want to be creative.