Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Marquee tool
#16
(11-06-2019, 04:21 PM)Richard Wrote: No...
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 and pants we usually wear's waist is adjust to our body by rubber or belt. 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...

In Obi 4.x, ObiSolver contains multiple per-particle data arrays: positions, velocities, invMasses, etc. The one you're interested in is "positions". Each position is a Vector4, with the w component set to 0.

The InitializeTransformFrame method you posted above has nothing to do with particles or particle data. As the name implies, it initializes the solver's inertial transform frame.
Reply


Messages In This Thread
Marquee tool - by Richard - 09-06-2019, 05:06 PM
RE: Marquee tool - by josemendez - 10-06-2019, 08:32 AM
RE: Marquee tool - by Richard - 10-06-2019, 09:21 AM
RE: Marquee tool - by josemendez - 10-06-2019, 02:19 PM
RE: Marquee tool - by Richard - 10-06-2019, 02:37 PM
RE: Marquee tool - by josemendez - 10-06-2019, 03:44 PM
RE: Marquee tool - by Richard - 10-06-2019, 04:14 PM
RE: Marquee tool - by josemendez - 10-06-2019, 07:21 PM
RE: Marquee tool - by Richard - 11-06-2019, 08:38 AM
RE: Marquee tool - by josemendez - 11-06-2019, 09:04 AM
RE: Marquee tool - by Richard - 11-06-2019, 09:14 AM
RE: Marquee tool - by josemendez - 11-06-2019, 11:06 AM
RE: Marquee tool - by Richard - 11-06-2019, 11:38 AM
RE: Marquee tool - by josemendez - 11-06-2019, 12:02 PM
RE: Marquee tool - by Richard - 11-06-2019, 04:21 PM
RE: Marquee tool - by josemendez - 12-06-2019, 07:13 AM
RE: Marquee tool - by Richard - 12-06-2019, 11:10 AM
RE: Marquee tool - by josemendez - 12-06-2019, 12:23 PM
RE: Marquee tool - by Richard - 12-06-2019, 12:49 PM