Development > Programming

Collision models

(1/1)

Ingar:
The latest commits (r904) should finally fix collision models. It was an extremely stupid bug, something like
--- Code: ---Triangle(v0, v1, v2); mesh->addTriangle(v0, v1, v1);

--- End code ---

Collision models are disabled by default: some quick testing did not reveal any
significant performance impact, but more testing needs to be done
before I decide wether or not to enable it by default.

To enable a collision model, add the complex key to a ship section in ships.ini,
or to an entity or station section in a zone.ini.

--- Code: ---complex=true

--- End code ---

You can draw the collision models ingame by setting the r_physics variable. Note that this does not work in multiplayer games, collision models are only loaded server-side.

--- Code: ---r_physics 1

--- End code ---
Note: Alexandria's collision model is incomplete, I still need to finish it.

Navigation

[0] Message Index

Go to full version