AnniXa Posted May 8, 2012 Share Posted May 8, 2012 when i want to have very small stuff, where i dont need to care about its shape because it are for example small bullets, what is then faster? BodyBox or BodySphere? i think a sphere just do raycast with a radius internally? i read that somewhere in the newton forums while box is doing racast from its edges or something? what would you prefer? Quote Whuts wroong? Link to comment Share on other sites More sharing options...
Rick Posted May 9, 2012 Share Posted May 9, 2012 Be careful with really small physics bodies. They can have collision issues I believe. But I think there is some sweeping kind of setting you can do to avoid these collision issues but I think it takes more processing power to set that. Quote Link to comment Share on other sites More sharing options...
AnniXa Posted May 9, 2012 Author Share Posted May 9, 2012 yea i saw that, actually i need to use swept collision otherwise my bullits fly threw my walls, (and the walls are not soo thin, they are 1.0 unit width at least) well what would you prefer for small stuff anyway? a bodybox or a bodysphere? Quote Whuts wroong? Link to comment Share on other sites More sharing options...
Rick Posted May 9, 2012 Share Posted May 9, 2012 You're probably splitting hairs so I wouldn't worry to much about it now. If anything pick one but make it easy to switch. That way you can just test out which is better. Quote Link to comment Share on other sites More sharing options...
Naughty Alien Posted May 9, 2012 Share Posted May 9, 2012 ..what you wanna achieve ?? Bullets hitting certain surface?? Quote Link to comment Share on other sites More sharing options...
AnniXa Posted May 9, 2012 Author Share Posted May 9, 2012 Bullets hitting everything ( terrain, players (tcontroller), npcs(tbody)) Quote Whuts wroong? Link to comment Share on other sites More sharing options...
Naughty Alien Posted May 9, 2012 Share Posted May 9, 2012 ..then, I think its better to have linepick, and where is the position, returned by linepick at the moment of firing weapon, is where bullet will impact, therefore also, where particle appear and so on..on this way you will just move your bullet between gun position and impact position returned by linepick, at speed you desire and you are set..no physics required.. Quote Link to comment Share on other sites More sharing options...
Mumbles Posted May 9, 2012 Share Posted May 9, 2012 Personally, I prefer raycasting for all projectiles (bullets and rockets). If realism isn't important and you don't care about bullet drop, wind or air resistance then it's a lot faster, and for bullets, you don't even need to draw it - you can just draw a spark and a bullet hole where it hit. Quote LE Version: 2.50 (Eventually) Link to comment Share on other sites More sharing options...
AnniXa Posted May 9, 2012 Author Share Posted May 9, 2012 Personally, I prefer raycasting for all projectiles (bullets and rockets). If realism isn't important and you don't care about bullet drop, wind or air resistance then it's a lot faster, and for bullets, you don't even need to draw it - you can just draw a spark and a bullet hole where it hit. yea thats true, in my case it are not so fast bullets. Like rockets or something, that are needed to draw Quote Whuts wroong? Link to comment Share on other sites More sharing options...
Mumbles Posted May 9, 2012 Share Posted May 9, 2012 As long as you save where the bullet / rocket is for each physics update... Draw the rocket at that position, and do a small raycast, like 1 unit in front of that position. Until the raycast hits something, then you hide rocket again. Quote LE Version: 2.50 (Eventually) Link to comment Share on other sites More sharing options...
Benton Posted May 9, 2012 Share Posted May 9, 2012 Battlefield has real projectiles for all the bullets... Quote Windows 7 Professional 64 bit, 16 gigs ram, 3.30GHz Quad Core, GeForce GTX 460 one gig, Leadwerks 2.5, Blender 2.62, Photoshop CS3, UU3D Link to comment Share on other sites More sharing options...
Arska134 Posted May 9, 2012 Share Posted May 9, 2012 Battlefield has real projectiles for all the bullets... Yeah. I would prefer real projectiles if i want to have ballistics and stuff. Arma 2 has real projectiles too. Quote Windows 7 Ultimate | Intel Core i7 930 @ 2.80 ghz | Nvidia GeForce GTX 560 | Leadwerks 2.5 | Blitzmax 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.
Note: Your post will require moderator approval before it will be visible.