shoiko Posted December 22, 2015 Share Posted December 22, 2015 Today, Torque's way of doing hitboxes suck. I mean, look at this: http://torque-3d.readthedocs.org/en/latest/_images/CharacterHitBoxOverview.jpgThat's exactly the same way i use to do hitbox on the old Quake 1 engine and QuakeC. You have a big bounding box and you separate that into smaller pieces. Valve's way of doing hitboxes is much more efficient without wasting performance:http://vignette4.wikia.nocookie.net/cswikia/images/c/c8/Csgo-hitboxes-20150915-update.pngWhere is most of the hitbox detection code in? Is it shoehorned into the player class in C++? Or is it spread over the physics abstractions? How are collision messages passed from client to server? Quote Link to comment Share on other sites More sharing options...
chriscalef Posted December 22, 2015 Share Posted December 22, 2015 If you're already planning on having ragdolls, then it makes the most sense IMHO to raycast for the physics bodies making up your ragdoll. I do this in PhysX, but bullet would be similar. I can't speak for stock Torque on the subject, however.This also brings up an issue of whether you have physics bodies on your characters all the time, or only instantiate them when they die. I use the former method, but might be forced to implement more restrictive rules when I start having very high numbers of characters in the scene, such as only instantiating physics bodies on characters within a certain distance of the player, or in the camera view area if zoomed. I'm sure it will take lots of trial and error to get it fully optimized, but so far at least I've found physx raycasts to be a quite inexpensive way to obtain not only a hit body, but the exact position, direction, surface normal and velocity of the projectile. Quote Link to comment Share on other sites More sharing options...
Duion Posted December 22, 2015 Share Posted December 22, 2015 You could integrate that old hitbox resource into Torque3D, many people would thank you for that. Quote Link to comment Share on other sites More sharing options...
MilkywayM16 Posted December 31, 2015 Share Posted December 31, 2015 A similar discussion came up very recently in this thread: http://forums.torque3d.org/viewtopic.php?f=11&t=415Long story short, wait for the entity component system or implement the old hitbox resource code. Quote Link to comment Share on other sites More sharing options...
Timmy Posted December 31, 2015 Share Posted December 31, 2015 It's definitely possible, in physx i create kinematic actors from the bones exactly the same as you would for a ragdoll, that runs from the animations and when you do need a ragdoll just change the actors to dynamic. Would work perfectly with bullet too. Just make sure the projectile class is using physics for raycasting AND filter out the actual character controller for that raycast. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.