Exemple #1
0
 public static MotionBehaviour <V> Perlin <V>(this MotionBehaviour <V> self, V speed)
 {
     Syntax.Resolve <V>(self,
                        (e) => e.Add(Noise.Perlin((float  )(object)speed, self.FrameRate)),
                        (e) => e.Add(Noise.Perlin((Vector2)(object)speed, self.FrameRate)),
                        (e) => e.Add(Noise.Perlin((Vector3)(object)speed, self.FrameRate)),
                        (e) => e.Add(Noise.Perlin((Vector4)(object)speed, self.FrameRate))
                        );
     return(self);
 }
Exemple #2
0
 public static MotionBehaviour <V> Fbm <V>(this MotionBehaviour <V> self, V offset, V speed, int octave)
 {
     Syntax.Resolve <V>(self,
                        (e) => e.Add(Noise.FbmWith((float  )(object)offset, (float  )(object)speed, octave, self.FrameRate)),
                        (e) => e.Add(Noise.FbmWith((Vector2)(object)offset, (Vector2)(object)speed, octave, self.FrameRate)),
                        (e) => e.Add(Noise.FbmWith((Vector3)(object)offset, (Vector3)(object)speed, octave, self.FrameRate)),
                        (e) => e.Add(Noise.FbmWith((Vector4)(object)offset, (Vector4)(object)speed, octave, self.FrameRate))
                        );
     return(self);
 }