jj_character_step function
Sets the character's velocity, then moves it by one update: CharacterVirtual::ExtendedUpdate, which slides along walls, sticks to the floor (stepDown, pointing down) and climbs stairs (stepUp, pointing up). A zero stepDown or stepUp turns that part off.
Implementation
@ffi.Native<
ffi.Void Function(
ffi.Int64,
ffi.Float,
ffi.Pointer<ffi.Float>,
ffi.Pointer<ffi.Float>,
ffi.Pointer<ffi.Float>,
ffi.Pointer<ffi.Float>,
ffi.Pointer<JJ_CharacterState>,
)
>()
external void jj_character_step(
int character,
double dt,
ffi.Pointer<ffi.Float> velocity,
ffi.Pointer<ffi.Float> gravity,
ffi.Pointer<ffi.Float> stepDown,
ffi.Pointer<ffi.Float> stepUp,
ffi.Pointer<JJ_CharacterState> out,
);