Skip to content

JumpBehavior

Oğuz Eroğlu edited this page Jun 15, 2020 · 2 revisions

Definition

JumpBehavior helps steerables achieve a jump. Unlike other behaviors, this behavior needs to be set via setJumpBehavior API.

Usage

// create a steerable
var steerable = new Kompute.Steerable("steerable1", new Kompute.Vector3D(), new Kompute.Vector3D(20, 20, 20));

// create an instance of JumpBehavior
var jumpBehavior = new Kompute.JumpBehavior();

// set the jump behavior
steerable.setJumpBehavior(jumpBehavior);