backhand cursor orientation
This commit is contained in:
parent
66e5afdb22
commit
cabd123404
1 changed files with 1 additions and 0 deletions
|
@ -35,6 +35,7 @@ static class Stretch
|
||||||
stretch = Maths.max(delta.Magnitude - deadzone, 0);
|
stretch = Maths.max(delta.Magnitude - deadzone, 0);
|
||||||
|
|
||||||
Vec3 dir = toggle ? delta.Normalized : to_grab.pose.orientation * Vec3.Forward;
|
Vec3 dir = toggle ? delta.Normalized : to_grab.pose.orientation * Vec3.Forward;
|
||||||
|
cursor.orientation = from_grab.pose.orientation;
|
||||||
cursor.position = to_grab.pose.position + dir * stretch * strength;
|
cursor.position = to_grab.pose.position + dir * stretch * strength;
|
||||||
|
|
||||||
if (Vec3.Distance(cursor.position, last_particle_pos) > trail_dist)
|
if (Vec3.Distance(cursor.position, last_particle_pos) > trail_dist)
|
||||||
|
|
Loading…
Add table
Reference in a new issue