Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
CryENGINE 3 Cookbook

You're reading from   CryENGINE 3 Cookbook Over 90 recipes written by Crytek developers for creating third-generation real-time games

Arrow left icon
Product type Paperback
Published in Jun 2011
Publisher Packt
ISBN-13 9781849691062
Length 324 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Sean P Tracy Sean P Tracy
Author Profile Icon Sean P Tracy
Sean P Tracy
Dan Tracy Dan Tracy
Author Profile Icon Dan Tracy
Dan Tracy
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

CryENGINE 3 Cookbook
Credits
About the Authors
www.PacktPub.com
Preface
1. CryENGINE 3: Getting Started FREE CHAPTER 2. Sandbox Basics 3. Basic Level Layout 4. Environment Creation 5. Basic Artificial Intelligence 6. Asset Creation 7. Characters and Animation 8. Creating Vehicles 9. Game Logic 10. Track View and Cut-Scenes 11. Fun Physics 12. Profiling and Improving Performance Index

Low gravity


In this simple recipe, we will look at utilizing the GravityBox to set up a low gravity area within a level.

Getting ready

  • Have Sandbox open

  • Then open My_Level.cry

How to do it...

  1. To start, first we must place down a GravityBox.

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

  3. Under the Physics section, select GravityBox.

  4. Place the GravityBox on the ground:

Keeping the default dimensions (20, 20, 20 meters), the only property here that we want to change is the gravity. The default settings in this box set this entire area within the level to be a zero gravity zone. To adjust the up/down gravity of this, we need to change the value of gravity and the Z axis.

To mimic normal gravity, this value would need to be set to the acceleration value of -9.81. To change this value to a lower gravity value, (something like the Moon's gravity) simply change it to a higher negative value such as -1.62.

How it works...

The GravityBox is a simple bounding box which overrides the defined gravity in the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image