Alternative collision support (Length + Width)

Moderator: GZDoom Developers

Post Reply
XLightningStormL
Posts: 384
Joined: Mon May 09, 2016 1:38 am
Location: Anywhere but here
Contact:

Alternative collision support (Length + Width)

Post by XLightningStormL »

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)
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49071
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Alternative collision support (Length + Width)

Post by Graf Zahl »

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.
Gez
 
 
Posts: 17835
Joined: Fri Jul 06, 2007 3:22 pm

Re: Alternative collision support (Length + Width)

Post by Gez »

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.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”