cEntity and physics
#1
I'm trying to rewrite cEntity in regard to physics. I'd like all entities to have their "speed" and to handle physics by default (overridable in subclasses). So that we can write the fluid interaction once, in the cEntity class and not in every subclass that is affected by fluids (basically everything except for players and falling blocks).

However, it is proving more difficult than at first anticipated. The most difficult part so far is the collision checking with the walls. Entities may be several blocks in diameter and in height, meaning several blocks need to be checked in each direction. It's one hell of a geometry nightmare. 3D Bresenham algorithm with fractional direction, yuck.
Reply
Thanks given by: Taugeshtu


Messages In This Thread
cEntity and physics - by xoft - 12-25-2012, 08:19 AM
RE: cEntity and physics - by Luksor - 12-25-2012, 07:25 PM
RE: cEntity and physics - by xoft - 12-26-2012, 11:49 AM
RE: cEntity and physics - by xoft - 12-27-2012, 06:28 PM
RE: cEntity and physics - by FakeTruth - 12-28-2012, 02:45 AM
RE: cEntity and physics - by xoft - 12-28-2012, 11:39 AM
RE: cEntity and physics - by xoft - 12-28-2012, 12:59 PM
RE: cEntity and physics - by FakeTruth - 12-28-2012, 06:24 PM
RE: cEntity and physics - by xoft - 12-29-2012, 06:20 AM
RE: cEntity and physics - by bearbin - 12-29-2012, 06:54 AM
RE: cEntity and physics - by xoft - 12-29-2012, 01:05 PM
RE: cEntity and physics - by Taugeshtu - 12-29-2012, 09:28 PM
RE: cEntity and physics - by FakeTruth - 12-30-2012, 01:26 AM
RE: cEntity and physics - by xoft - 12-31-2012, 10:41 AM
RE: cEntity and physics - by keyboard - 12-31-2012, 03:58 PM
RE: cEntity and physics - by xoft - 12-31-2012, 05:50 PM



Users browsing this thread: 1 Guest(s)