Skip to content

Instantly share code, notes, and snippets.

View Doprez's full-sized avatar
⚠️
Not a real dog!

Doprez

⚠️
Not a real dog!
View GitHub Profile
@Doprez
Doprez / SmoothFollow.cs
Created April 30, 2023 16:01
I use this to fix an issue where if a camera is attached to a physics component it creates an annoying stutter when moving.
[DataContract(nameof(SmoothFollow))]
[ComponentCategory("Animation")]
public class SmoothFollow : SyncScript
{
public Entity EntityToFollow { get; set; }
public Vector3 Speed { get; set; } = new Vector3(1, 1, 1);
public override void Update()
{
@Doprez
Doprez / AnimationEvent.cs
Created April 29, 2023 21:19
Stride Animation event trigger
using ImmoApocalypse.Code.Core.Structs;
using Stride.Core;
using Stride.Engine;
using System;
using System.Windows.Media.Animation;
namespace Core;
[DataContract(nameof(AnimationEvent))]
[AllowMultipleComponents]