(11-06-2019, 12:02 PM)josemendez Wrote: You asked this before, and I answered with code to do it:No...
http://obi.virtualmethodstudio.com/forum...ght=handle
My guess is that you want to let the user click and drag a rectangle on the screen to select multiple particles, then create a handle out of them. All of this, in your own application/game, not in the editor. So you're essentially making your own in-game particle editor. Is this correct?
Sorry for my English...
I don't let user click and drag or any manipulate... Some clothing like uniform of speed skating, clothing has to be fit to object. Or other clothing like underwear of women need it . I would like to do that automatically.
In the process, I want to choose particles by script, create obi handle and change scale.
ObiSolver.position is below of ObiSolver.cs?
Code:
private void InitializeTransformFrame(){
Vector4 translation = transform.position;
Vector4 scale = transform.lossyScale;
Quaternion rotation = transform.rotation;
Oni.InitializeFrame(this.oniSolver,ref translation,ref scale, ref rotation);
}
I could not get variables like translation from there...
In reference of ObiSolver, there is "AlignedVector4Array positions". There is not that in ObiSolver.cs now.
I got position now. However, the position's type becomes float, not vector3...