setup sim slash test

This commit is contained in:
ethan merchant 2024-12-18 11:36:13 -05:00
parent f4cad7dc6c
commit de8a2dbe09
2 changed files with 4 additions and 4 deletions

View file

@ -131,7 +131,7 @@ static class Arts
Mesh mesh = new(); Mesh mesh = new();
Quat blade_ori = Rig.r_hld.orientation; Quat blade_ori = Rig.r_hld.orientation;
Vec3 blade_pos = Rig.r_hld.position; Vec3 blade_pos = Rig.r_hld.position;
Vec3 tip_pos = blade_pos + blade_ori * V.XYZ(0, 0, 1); Vec3 tip_pos = blade_pos + blade_ori * V.XYZ(0, 0, -1);
mesh.SetData( mesh.SetData(
new Vertex[] { new Vertex[] {
new( blade_pos, V.XYZ(0,0,1)), new( blade_pos, V.XYZ(0,0,1)),

View file

@ -33,11 +33,11 @@ static class Rig
btn_back.Step(Input.Key(Key.MouseRight).IsActive()); btn_back.Step(Input.Key(Key.MouseRight).IsActive());
r_hld = new Pose( r_hld = new Pose(
V.XYZ(SKMath.Sin(Time.Totalf * 1f) * 0.1f, 0.5f, 1.0f), V.XYZ(SKMath.Sin(Time.Totalf * 6f) * 0.6f * 0.0f, 0.5f, 1.0f),
Quat.FromAngles(0, 0, SKMath.Sin(Time.Totalf * 6f) * 30f) Quat.FromAngles(0, 0, 45) * Quat.FromAngles(0, SKMath.Sin(Time.Totalf * 6f) * 60f, 0)
); );
l_aim = new Pose( l_aim = new Pose(
V.XYZ(SKMath.Sin(Time.Totalf * 2f) * 0.6f, 0.5f, 0.5f), V.XYZ(0.0f, 0.5f, 0.5f), // V.XYZ(SKMath.Sin(Time.Totalf * 2f) * 0.6f, 0.5f, 0.5f),
Quat.Identity Quat.Identity
); );