04.01.2016, 12:34
Have look at the CNatives.h source code you might find some useful information.
@ipsBruno, I am currently working on a big update, which will include some demos of vehicle collisions and few other.
Here is a basic demo, Basic Demo. I made it in a hurry so it's not well documented but for a scripter it is easy to understand by just looking at the functions. |
The picture you posted, is valid only for 2D polygons which is only fit for 2D pathfinding. In our case, everything is in 3D and a single model contains various sub collision shapes such as rectangles, spheres, mesh, etc. Most of the models contains spheres as sub collision shapes, now tell me does sphere has vertices? The answer is no. Your NPC will get confused when a spherical object/model is placed in front of him.
|