Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Doprez committed Jun 3, 2023
1 parent cce03cc commit bcb52fa
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ namespace Doprez.Stride.Animations.Data;
[Display("EventData")]
public struct AnimationEventData
{

/// <summary>
/// Set the Name of the Animation in the AnimationComponent
/// </summary>
Expand Down
1 change: 0 additions & 1 deletion Doprez.Stride/Components/Navigation/Pathfinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ namespace Doprez.Stride.Navigation;
[ComponentCategory("Navigation")]
public class Pathfinder : StartupScript
{

public float MovementSpeed { get; set; } = 10;
public Vector3 TargetPosition;
public string NavGroupName { get; set; }
Expand Down
5 changes: 2 additions & 3 deletions Doprez.Stride/Components/Physics/Raycast.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public HitResult RayCast(Entity entityPosition)
{
var raycastStart = entityPosition.Transform.WorldMatrix.TranslationVector;
var forward = entityPosition.Transform.WorldMatrix.Forward;
var raycastEnd = raycastStart + forward * RaycastRange;
var raycastEnd = raycastStart + (forward * RaycastRange);

var result = _simulation.Raycast(raycastStart, raycastEnd);

Expand All @@ -42,12 +42,11 @@ public async Task<HitResult> RayCastAsync(Entity entityPosition)
{
var raycastStart = entityPosition.Transform.WorldMatrix.TranslationVector;
var forward = entityPosition.Transform.WorldMatrix.Forward;
var raycastEnd = raycastStart + forward * RaycastRange;
var raycastEnd = raycastStart + (forward * RaycastRange);

var result = await Task.FromResult(_simulation.Raycast(raycastStart, raycastEnd));

return result;
}

}
}
1 change: 0 additions & 1 deletion Doprez.Stride/Components/Utils/SmoothFollow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ namespace Doprez.Stride.Utils;
[ComponentCategory("DoprezUtils")]
public class SmoothFollow : SyncScript
{

public Entity EntityToFollow { get; set; }
public Vector3 Speed { get; set; } = new Vector3(1, 1, 1);

Expand Down
1 change: 0 additions & 1 deletion Doprez.Stride/Components/Utils/SmoothFollowAndRotate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ namespace Doprez.Stride.Utils;
[DataContract("DoprezSmoothFollowAndRotate")]
public class SmoothFollowAndRotate : SyncScript
{

public Entity EntityToFollow { get; set; }
public float Speed { get; set; } = 1;

Expand Down
1 change: 0 additions & 1 deletion Doprez.Stride/Components/Utils/SmoothRotate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ namespace Doprez.Stride.Utils;
[ComponentCategory("DoprezUtils")]
public class SmoothRotate : SyncScript
{

public Entity EntityToFollow { get; set; }
public Vector3 Speed { get; set; } = new Vector3(1, 1, 1);

Expand Down

0 comments on commit bcb52fa

Please sign in to comment.