Hello,
I am trying to extend the renderLine length in particular direction. i have two vec 3 values. from one i have to extend.
Need help.
Thanks in Advance…
var directionOfNextPoint = new pc.Vec3();
directionOfNextPoint.sub2(rayTargetEntity.getPosition(), collisionBallPointerEntity.getPosition());
directionOfNextPoint.normalize();
var distanceBetweenTwoPoints = directionOfNextPoint.length();
var nextPointPosition = directionOfNextPoint.clone();
// console.log(nextPointPosition);
app.renderLine(nextPointPosition, collisionBallPointerEntity.getPosition(), new pc.Color(0, 0, 0), new pc.Color(0, 0, 0), pc.LINEBATCH_OVERLAY);