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.

sdk: Cuboid's doc says Bevy's front face shows a picture upside down and its back face the right way up (found rebuilding a photo: every printed label read upside down)

shinyobjectz90f138fba016
diff --git a/docs/manual/reference/sdk/3d.md b/docs/manual/reference/sdk/3d.md
index a9f98fe4..860bdc1b 100644
--- a/docs/manual/reference/sdk/3d.md
+++ b/docs/manual/reference/sdk/3d.md
@@ -1457,7 +1457,8 @@ How the tube draws the picture. Every value is optional; `crt={false}` on the Sc
### `CuboidProps`
-Bevy's Cuboid: half its size along each axis ([0.5, 0.5, 0.5], a 1 m cube, as Bevy's default).
+Bevy's Cuboid: half its size along each axis ([0.5, 0.5, 0.5], a 1 m cube, as Bevy's default). Bevy's UVs show a
+picture upside down on its front face (+z) and the right way up on its back (-z): turn a printed label half a turn.
| Field | Type | What it is |
| --- | --- | --- |
diff --git a/docs/manual/reference/sdk/mesh.md b/docs/manual/reference/sdk/mesh.md
index f338cad5..0d864b48 100644
--- a/docs/manual/reference/sdk/mesh.md
+++ b/docs/manual/reference/sdk/mesh.md
@@ -387,7 +387,8 @@ height (0.5), standing up: a tapered Cylinder of args [radius_top, radius_bottom
### `CuboidProps`
-Bevy's Cuboid: half its size along each axis ([0.5, 0.5, 0.5], a 1 m cube, as Bevy's default).
+Bevy's Cuboid: half its size along each axis ([0.5, 0.5, 0.5], a 1 m cube, as Bevy's default). Bevy's UVs show a
+picture upside down on its front face (+z) and the right way up on its back (-z): turn a printed label half a turn.
| Field | Type | What it is |
| --- | --- | --- |
diff --git a/sdk/render/src/3d/shapes.tsx b/sdk/render/src/3d/shapes.tsx
index 1b9c6270..48ebfab5 100644
--- a/sdk/render/src/3d/shapes.tsx
+++ b/sdk/render/src/3d/shapes.tsx
@@ -37,7 +37,8 @@ export interface BoxProps {
args?: [number, number, number];
}
-/** Bevy's Cuboid: half its size along each axis ([0.5, 0.5, 0.5], a 1 m cube, as Bevy's default). */
+/** Bevy's Cuboid: half its size along each axis ([0.5, 0.5, 0.5], a 1 m cube, as Bevy's default). Bevy's UVs show a
+ * picture upside down on its front face (+z) and the right way up on its back (-z): turn a printed label half a turn. */
export interface CuboidProps {
/** half its size along x, y and z, metres ([0.5, 0.5, 0.5]) */
half_size?: [number, number, number];
@@ -389,8 +390,7 @@ export interface MeshProps extends PointerHandlers3d {
/** it may pass through other parts on purpose (a blade into a body, a ghost through a wall): raea's clipping
* check leaves it out */
allowOverlap?: boolean;
- /** set at an angle on purpose (a bowl knocked over, a mug on its side): `raea scene lint` doesn't call it
- * tilted */
+ /** set at an angle on purpose (a bowl knocked over, a mug on its side): `raea scene lint` doesn't call it tilted */
posed?: boolean;
/** a Manifold solid (manifold.box(...).minus(...)) or its expression; wins over the geometry child */
shape?: string | Solid;