flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > struct what wrong ? Invalid macro arguments. |
| Author |
|
|
macomics 01 Aug 2026, 17:33
Code: struc b3Vec3 x,y,z { .x dd x .y dd y .z dd z } struc b3Matrix3 x,y,z { .cx b3Vec3 x .cy b3Vec3 y .cz b3Vec3 z } struc b3MassData m,c,x,y,z { ; The shape mass .mass dd m ;float ; The local center of mass position. .center b3Vec3 c ; The inertia tensor about the shape center of mass. .inertia b3Matrix3 <x>,<y>,<z> } masssa b3MassData 10f,<0,0,0>,<1f,0,0>,<0,1f,0>,<0,0,1f> |
|||
|
|
Roman 01 Aug 2026, 18:08
Thanks.
This work too. Code: struct b3Vec3 x dd 0 y dd 0 z dd 0 ends struct b3Matrix3 cx b3Vec3 cy b3Vec3 cz b3Vec3 ends struc b3MassData m,c,x,y,z { ; The shape mass .mass dd m ;float ; The local center of mass position. .center b3Vec3 c ; The inertia tensor about the shape center of mass. .inertia b3Matrix3 <x>,<y>,<z> } masssa b3MassData 10f,<0,0,0>,<1f,0,0>,<0,1f,0>,<0,0,1f> |
|||
|
|
Roman 05 Aug 2026, 16:23
|
|||
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2026, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.