As a user, I want scripts to be able to easily manage subobjects on my construct.
Related
Determine coordination with weapon aiming
Concepts
Getting subobjects
foreach(var subobject in SubObjects.All) {
// could use some refinement
Log($"Subobject {subobject.Name} {subobject.Id} is attached to {subobject.Parent?.Name ?? "Main Construct"}");
}
Piston vs spinner type subobjects
SubObjects.Spinners;
SubObjects.Pistons;
Log(subobject.SubobjectType); // Spinner, Piston
Managing subobjects
spinner.RotationAngle = 123.0; // deg
spinner.RotationSpeed = 30.0; // deg/s
spinner.RotationType = RotationType.Constant; // RotateToAngle, Constant
Log($"Spinner currently rotated at {spinner.Angle} deg");
piston.Extension = 1.0; // m
piston.Velocity = 6.0; // m/s
Log($"Piston currently extended to {piston.CurrentExtension}m");
Note: subobject concepts are pretty rough, likely need to be refined
As a user, I want scripts to be able to easily manage subobjects on my construct.
Related
Determine coordination with weapon aiming
Concepts
Getting subobjects
Piston vs spinner type subobjects
Managing subobjects
Note: subobject concepts are pretty rough, likely need to be refined