Universe
export type Universe = Body | {
_Bodys: {Body},
update: (self: Universe, dt: number) -> (),
Body: (self: Universe, props: {any}) -> (Body)
}
_Bodys: {Body}
A weak table of all Bodys part of this universe.
Don't use this!
This is used to find all bodys for the update() function, and is not intended for external use!
update: (self: Universe, dt: number) -> ()
Function thats ran by the user to call the update on all bodys with the given DeltaTime value.
Body: (self: Universe, props: {any}) -> (Body)
Constructor function that creates Body objects using a list of props. Props can contain Components inside the number keys, and SpecialKeys set to a certain value.