Skip to main content

AgentJumpAtSettings

A class in Root.Township, Alta.Intelligence.

Settings for ActiveJumpAt: launch the creature's rigidbody at the target and finish when it lands. Server only.

Constructors​

MemberWhat it is
AgentJumpAtSettings()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

5 private and internal fields
MemberWhat it is
private float extraYOffsetBacking field for ExtraYOffset (default 0.1).
private float jumpGravityMultiplierBacking field for JumpGravityMultiplier (default 1).
private float jumpVelocityBacking field for JumpVelocity (default 10).
private float walkerPowerPerSecondBacking field for WalkerPowerPerSecond (default 0.1).
private float yOffsetMultiplierBacking field for YOffsetMultiplier (default 1.1).

Properties​

MemberWhat it is
float ExtraYOffset { get; }Fixed amount added to the upward part of the jump direction.
float JumpGravityMultiplier { get; }Walker gravity multiplier used during the jump. The old value is put back when the action ends.
float JumpVelocity { get; }Speed the rigidbody is launched at, along the direction to the target.
float WalkerPowerPerSecond { get; }Rate the walker's power recovers after being cut to -1 for the jump.
float YOffsetMultiplier { get; }Multiplies the target's height above the creature (0 if below) when aiming the jump.

Methods​

MemberWhat it is
protected override IAction GetAction()Builds the shared ActiveJumpAt action, which uses a target.