Type TBody
EndType
Type TVehicle Extends TBody
EndType
I have a bunch of CreateBody() commands like CreateBoxBody() CreateConvexHullBody(), etc. It would be nice to be able to use these commands to create the body, and then create a vehicle from that body, but actually turn the body into a vehicle, instead of copying it:
body:TBody=CreateBoxBody()
CreateVehicle(body:TBody)
vehicle:TVehicle=TVehicle(body)
EndType
Type TVehicle Extends TBody
EndType
I have a bunch of CreateBody() commands like CreateBoxBody() CreateConvexHullBody(), etc. It would be nice to be able to use these commands to create the body, and then create a vehicle from that body, but actually turn the body into a vehicle, instead of copying it:
body:TBody=CreateBoxBody()
CreateVehicle(body:TBody)
vehicle:TVehicle=TVehicle(body)