www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: Melssj5 on April 08, 2006, 11:46:24 PM

Title: Collision Detection without a World!
Post by: Melssj5 on April 08, 2006, 11:46:24 PM
Is it possible to check collisions between several objects without adding them to a World.
Title: Collision Detection without a World!
Post by: EgonOlsen on April 09, 2006, 01:00:52 PM
No, there isn't. If you want to limit collision detection to several objects, you have to set their collision modes accordingly.
Title: Collision Detection without a World!
Post by: Melssj5 on April 09, 2006, 06:09:35 PM
I am using the server machine to manage all the events and collisions, so I use a World with all the objects built in there. But I think that I am wasting memory because that world never wil be rendered, wont have lights nor anything like that.
Title: Collision Detection without a World!
Post by: EgonOlsen on April 09, 2006, 06:13:18 PM
The overhead is minimal. You may reduce the maxPolysVisible on the server to same some more memory but even that shouldn't really matter.