Thank you ,
I knew something is not ok with this polyline . now i have to learn how to edit classes
this is a good practice
thanks again
I knew something is not ok with this polyline . now i have to learn how to edit classes
thanks again
The problem about "JpctPolyline" is that you can't create array of SimpleVector with the Project Wrapper of Alhowiriny
So one fix:
1°) With eclipse, Add this method in the class "JPolyline.java" in the Project Wrapper Source of Alhowiriny :
public SimpleVector[] essai(int dimension) {
SimpleVector[] ess=new SimpleVector[dimension];
return ess;
}
2°) With B4A, Use Pl_Line.essai(X) for create an array of X SimpleVector
Dim Pl_Line As JpctPolyline
Dim Pl_obj() As Object
Dim Pl_Tab(100) As JpctSimpleVector
Pl_obj=Pl_Line.essai(Pl_Tab.Length)
For i=0 To Pl_obj.Length-1
...
Pl_obj(i)=Pl_Tab(i)
Next
Pl_Line.update(Pl_obj)
3°) Good luck (it's not easy but it's work well)
Dim i As Int
Dim LineColor As JpctRGBColor
LineColor.Initialize2(50,100,250)
Dim Pl_Line As JpctPolyline
Dim Pl_obj() As Object
Dim Pl_Tab(100) As JpctSimpleVector
Pl_obj=Pl_Line.essai(Pl_Tab.Length)
For i=0 To Pl_obj.Length-1
Pl_Tab(i).Initialize
Pl_Tab(i).create3(i*0.5,-0.5+i*0.2,-0.5+i*0.3)
Pl_obj(i)=Pl_Tab(i)
Next
Pl_Line.Initialize(Pl_obj,LineColor)
Pl_Line.update(Pl_obj)
Pl_Line.Width=5
Pl_Line.Percentage=1
World.addPolyline(Pl_Line)
Hi, Any Body knows is there any solution for zooming the object in or out? Tnx For Reply.
Thanks alotYour have to use setScale Metod for Object.
For Example: curBody.setScale(2.35)