Skip to main content

Force Fields and Jump Pads

  • Chapter
  • First Online:
  • 2403 Accesses

Abstract

In this chapter, we'll be implementing a configurable ForceField script that pairs with a trigger collider to apply force to Rigidbodies and/or the player. Based on a variable set in the Inspector determining the type of force to apply, we'll either apply it constantly while the trigger is touched or once when the trigger is first entered. Based on the force mode you choose, you could make an object either get pushed as if by a large fan or get shoved up like a “jump pad” thrusting them all at once.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Casey Hardman

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Hardman, C. (2020). Force Fields and Jump Pads. In: Game Programming with Unity and C#. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-5656-5_40

Download citation

Publish with us

Policies and ethics