Page 1 of 1

Placing Meshes on the terrain

Posted: 2012-06-12, 02:55
by Jgolden
Hello-

I'm new to the Cafu Engine, and found it while in the search for an engine for my latest project. After going through the features list, I found support for everything I require, except that I didn't see anything in regards to if a player can place something from an inventory (a static mesh) on the terrain in a networked environment where the mesh would show up on the terrain of others playing the game as-well. Is this possible in the Cafu engine? :-)

Re: Placing Meshes on the terrain

Posted: 2012-06-13, 00:40
by Carsten
Hi Jgolden,
welcome to the Cafu forums! :welcome:
[...] where the mesh would show up on the terrain of others playing the game as-well. Is this possible in the Cafu engine? :-)
Yes, that's possible.
This is a feature that is not implemented in the sample code, but with some C++ programming it is easy to add: Basically, it works like throwing a grenade: You create a new entity, give it the desired properties, and place it into the world. The new entity sits in the world until it is picked up by another entity, e.g. a player.

If you need more detailed instructions or help, please let us know.