错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Force Fields and Jump Pads

  • Casey Hardman

摘要

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. In other words, 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.