public override void WhileLiving(float v) { if (active == true) { // print(Camera.main); cameraLeft = -Camera.main.transform.right; cameraUp = Camera.main.transform.up; transformFloats = HELP.GetMatrixFloats(skin.gameObject.transform.localToWorldMatrix); if (drawable == true) { // intersect.active = true; intersect.readBack = true; if (touch.Down == 1) { intersect.active = true; } else { intersect.active = false; } } else { intersect.active = false; intersect.readBack = false; } } }
public override void WhileLiving(float v) { for (int i = 0; i < count; i++) { tmp = HELP.GetMatrixFloats(humans[i].LeftHand.localToWorldMatrix); for (int j = 0; j < 16; j++) { values[i * structSize + j] = tmp[j]; } tmp = HELP.GetMatrixFloats(humans[i].RightHand.localToWorldMatrix); for (int j = 0; j < 16; j++) { values[i * structSize + 16 + j] = tmp[j]; } tmp = HELP.GetMatrixFloats(humans[i].Head.localToWorldMatrix); for (int j = 0; j < 16; j++) { values[i * structSize + 32 + j] = tmp[j]; } values[i * structSize + 48 + 0] = humans[i].LeftTrigger; values[i * structSize + 48 + 1] = humans[i].RightTrigger; values[i * structSize + 48 + 2] = humans[i].Voice; values[i * structSize + 48 + 3] = humans[i].DebugVal; } SetData(values); }
public override void WhileLiving(float v) { if (active == true) { // print(Camera.main); cameraLeft = -Camera.main.transform.right; cameraUp = Camera.main.transform.up; transformFloats = HELP.GetMatrixFloats(skin.gameObject.transform.worldToLocalMatrix); // print( transformFloats); if (drawable == true) { if (touch.JustDown == 1) { CheckForNew();// SetParticle( trace , currentID , ) } if (dragDraw) { if (touch.Down == 1) { CheckForNew(); } } } } }
public override void WhileLiving(float v) { if (Active == true) { // print(Camera.main); cameraLeft = -Camera.main.transform.right; cameraUp = Camera.main.transform.up; transformFloats = HELP.GetMatrixFloats(skin.gameObject.transform.localToWorldMatrix); place.Live(); if (touch.Down == 1) { intersect.Live(); } if (showBody == true) { bodyTransfer.Live(); body.WhileLiving(1); } else { body.Hide(); } } }
public override void WhileLiving(float v) { //set.active = false; force.active = false; constraint.active = false; resolve.active = false; pass.active = false; //set.active = false; transformArray = HELP.GetMatrixFloats(transform.localToWorldMatrix); resolve._SetUpDispatch(); resolve._DispatchShader(); for (int i = 0; i < numIterations; i++) { force._SetUpDispatch(); force._DispatchShader(); constraint._SetUpDispatch(); constraint._DispatchShader(); pass._SetUpDispatch(); pass._DispatchShader(); } }
public override void WhileLiving(float v) { //numFrames += 1; //if( numFrames == 10 ){ Set(); Activate(); } //set.active = false; transformArray = HELP.GetMatrixFloats(transform.localToWorldMatrix); }
public override void WhileLiving(float v) { transformArray = HELP.GetMatrixFloats(((ParticlesOnMesh)Base).mesh.gameObject.transform.localToWorldMatrix); HairCollision.shader.SetFloat("_HairLength", Hair.length); HairCollision.shader.SetInt("_NumVertsPerHair", Hair.numVertsPerHair); HairCollision.Live(); HairConstraint0.Live(); HairConstraint1.Live(); HairTransfer.Live(); body.WhileLiving(1); }
public override void WhileLiving(float v) { if (active == true) { transformArray = HELP.GetMatrixFloats(transform.localToWorldMatrix); if (showBody == true) { body.active = true; } else { body.active = false; } } }
public void SetInfo() { for (int i = 0; i < transforms.Length; i++) { tmpVals = HELP.GetMatrixFloats(transforms[i].localToWorldMatrix); for (int j = 0; j < 16; j++) { values[i * 32 + j] = tmpVals[j]; } tmpVals = HELP.GetMatrixFloats(transforms[i].worldToLocalMatrix); for (int j = 0; j < 16; j++) { values[i * 32 + j + 16] = tmpVals[j]; } } SetData(values); }
public override void WhileLiving(float v) { transformArray = HELP.GetMatrixFloats(this.transform.localToWorldMatrix); //HairCollision.shader.SetFloat("_HairLength", Hair.length ); //HairCollision.shader.SetInt("_NumVertsPerHair", Hair.numVertsPerHair); HairCollision.Live(); HairConstraint0.Live(); HairConstraint1.Live(); if (showBody == true) { HairTransfer.Live(); body.WhileLiving(1); } else { body.Hide(); } }
public override void WhileLiving(float v) { for (int i = 0; i < count; i++) { tmp = HELP.GetMatrixFloats(humans[i].LeftHand.localToWorldMatrix); for (int j = 0; j < 16; j++) { values[i * structSize + j] = tmp[j]; } tmp = HELP.GetMatrixFloats(humans[i].RightHand.localToWorldMatrix); for (int j = 0; j < 16; j++) { values[i * structSize + 16 + j] = tmp[j]; } tmp = HELP.GetMatrixFloats(humans[i].Head.localToWorldMatrix); for (int j = 0; j < 16; j++) { values[i * structSize + 32 + j] = tmp[j]; } values[i * structSize + 48 + 0] = humans[i].LeftTrigger; values[i * structSize + 48 + 1] = humans[i].RightTrigger; values[i * structSize + 48 + 2] = humans[i].Voice; values[i * structSize + 48 + 3] = humans[i].DebugVal; } SetData(values); // Toggles head force if (Input.GetKeyDown(KeyCode.Space)) { headForce = 1 - headForce; } }
public override void WhileLiving(float v) { //set.active = false; transformArray = HELP.GetMatrixFloats(transform.localToWorldMatrix); }
public override void WhileLiving(float v) { transformFloats = HELP.GetMatrixFloats(t.localToWorldMatrix); }