Book Image

CryENGINE 3 Cookbook

By : Dan Tracy, Sean P Tracy (USD)
Book Image

CryENGINE 3 Cookbook

By: Dan Tracy, Sean P Tracy (USD)

Overview of this book

With every successive console generation, the cost, time, and complexity of developing games has grown. Meet CryENGINE3, a middleware engine that is the perfect fit for most developers allowing users to exceed current generation quality standards while using less people and time than ever thought possible.The CryENGINE3 CookBook is packed full of recipes for junior and senior developers alike. It covers everything from creating photo realistic architectural visualizations to implementing advanced physics such as ragdoll and tornado effects. Topics covered include the sandbox, level layout, environment creation, AI, character creation, creating vehicles, and game logic. Every recipe is designed to add AAA quality to your games. The CryENGINE3 SDK has many tools immediately available to developers of all disciplines. For designers the book has recipes for building up your own levels and populating your levels with intelligent AI and photo realistic assets. For artists we have recipes for practical workflow tools and techniques used when working with the advanced CryENGINE shaders and materials. For animators we have recipes that will bring your creations to life using skinned characters and advanced animation systems like locomotion groups. Finally for programmers we have recipes that show how to employ the core mechanics behind entities such as vehicles and weapons while also utilizing the strengths of the physics engine to create a unique and exciting game.
Table of Contents (18 chapters)
CryENGINE 3 Cookbook
Credits
About the Authors
www.PacktPub.com
Preface
Index

Wrecking ball


Instead of using the dead body that we used in the Hangman on a rope recipe, we will look at attaching a heavy RigidBodyEx in the shape of a ball to make a wrecking ball. Through this the player will be able to activate the rope physics to swing the wrecking ball into a breakable house and destroy a section of wall on it.

Getting ready

  • You should have completed the Hangman on a rope recipe

  • Open My_Level.cry within the Sandbox

How to do it...

Using what we've already learned from the Hangman on a rope recipe, we will now swap out the DeadBody for a RigidbodyEx:

  1. In the RollupBar, click on the Entities button.

  2. Under the Physics section, select RigidBodyEx.

  3. After placing the RigidBodyEx into your level, you first want to change the model over to a sphere.

  4. Select the newly placed RigidBodyEx.

  5. In the RollupBar, you will find Model under Entity Properties.

  6. Change the model to the following .cgf model objects/default/primitive_sphere.cgf.

  7. Then change the following properties still found under...