public static Offset <BodyMotion> CreateBodyMotion(FlatBufferBuilder builder, uint triggerTime_ms = 0, uint durationTime_ms = 0, StringOffset radius_mmOffset = default(StringOffset), short speed = 0) { builder.StartObject(4); BodyMotion.AddRadiusMm(builder, radius_mmOffset); BodyMotion.AddDurationTimeMs(builder, durationTime_ms); BodyMotion.AddTriggerTimeMs(builder, triggerTime_ms); BodyMotion.AddSpeed(builder, speed); return(BodyMotion.EndBodyMotion(builder)); }
public static BodyMotion GetRootAsBodyMotion(ByteBuffer _bb, BodyMotion obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }