Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

518 B
Raw Blame
// DR4's proof, the 3D scene's cheat: the rider turned with the seat (so a check of the angle alone passes), but pushed
// back into the seat's back (seat.tsx). checks/rider.ts must fail it.
import { Composition, registerRoot, useCurrentFrame } from "raea";
import { Seat } from "./seat";

function Ride() {
  return <Seat yaw={0.3 + useCurrentFrame() * 0.01} rider={[0, 0.35, -0.15]} />;
}

registerRoot(() => <Composition id="ride-cheat" component={Ride} width={540} height={960} fps={30} durationInFrames={30} />);