Skip to main content

Crate cvkg_anim

Crate cvkg_anim 

Source
Expand description

§CVKG Agentic Development Guidelines (v1.2)

All AI agents contributing to this crate MUST follow ALL seven rules:

── Karpathy Guidelines (1–4) ────────────────────────────────────────────

  1. THINK FIRST — State assumptions. Surface ambiguity. Push back on complexity.
  2. STAY SIMPLE — Minimum code. No speculative features. No unasked-for abstractions.
  3. BE SURGICAL — Touch only what’s required. Own your orphans. Don’t improve neighbors.
  4. VERIFY GOALS — Turn tasks into checkable criteria. Loop until they pass. Never commit broken.

── CVKG Extended Protocols (5–7) ──────────────────────────────────────── 5. TRIPLE-PASS — Read the target, its surrounding context, and its full call graph at least THREE TIMES before making any edit or revision. 6. COMMENT ALL — Every major pub fn, unsafe block, and non-trivial algorithm in every .rs/.ts/.h/.wgsl file MUST have a descriptive doc comment. Comments describe WHY and WHAT CONTRACT, not HOW mechanically. 7. MONITOR LOOPS — Check every tool call / command for progress every 30 seconds. After 3 consecutive identical failures, stop, write BLOCKED.md, and move to unblocked work. Never silently accept a broken state.

§Sleipnir Animation Engine

Provides high-fidelity physics-based animation and transition systems for CVKG.

Re-exports§

pub use particles::*;

Modules§

advanced_particles
Advanced particle system with SDF collisions, reaction-diffusion flow fields, pointer-reactive attractors, SoA+SIMD layout, and spline-eased color animation.
behavior
Procedural behavior animation systems
geometry
growth
Growth and destruction procedural animation systems.
momentum
morph
particles
physics
Physics simulation systems for procedural animation.
shader_anim
skeletal
spring_snap
Spring snap events and haptic binding.
verlet

Structs§

ActiveAnimation
Active animation state tracker
Keyframe
A discrete keyframe in a hybrid animation path
Motion
Motion controller that handles lifecycle events and state transitions.
RubberBand
Tactile “Rubber Banding” utility for scroll/drag physics. Maps an unbounded input value to a bounded range with elastic resistance.
SleipnirParams
Sleipnir spring parameters for the physics solver
SleipnirSolver
SleipnirSolver implements a 4th-order Runge-Kutta (RK4) integration for springs. This provides superior stability for high-fidelity interactive motion.

Enums§

Animation
High-level Animation Primitive
Easing
ProgressDriver
Abstract driver for animation progress (Time-based or Scroll/Scalar-based)

Traits§

AnimationValue