src/nodes/processing/VelocityCalculationNode.ts
Function predictVelocity
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public predictVelocity(object: DataObject): Promise<DataObject> {
return new Promise((resolve) => {
const service = this.model.findDataService(object);
const position = object.getPosition();
// Get the previous position