CC: Sable is a CC: Tweaked addon for the Sable backend of Create: Simulated!
Currently, it provides the Sub-Level API (sublevel) for all in-game computers! Its methods can only be properly called when the computer is on a Sub-Level (physics object). It also provides the Aerodynamics API (aero,aerodynamics) for all in-game computers to access dimension-specific physics information!
This mod also comes bundled with the CC: Advanced Math datapack for extra math utilities, namely the quaternion module for handling rotations in 3D space. This is used to convert the orientation of Sub-Levels into a more usable format for Lua.
Extra References
LuaBezierResourceFunction
This object is gotten from the tables returned by aero.getRaw and aero.getDefault, specifically from the pressureFunction key.
getPoints(): table
This method returns an array of points along the bezier curve with altitude, value, and slope as fields for each point.
evaluateFunction(altitude: number): number
This method evaluates the function given the altitude along the bezier curve.
More Block Details
This mod also adds the physics properties of blocks to any method calling to block details, such as turtle.inspect().
These new details will be listed under the "sable" key and have the following key-value pairs:
mass: numberfriction: numberrestitution: numbervolume: numberfloatingScale: numberfloatingMaterial: table(can be empty)factHorizontalFriction: numberfactVerticalFriction: numberslowHorizontalFriction: numberslowVerticalFriction: numberliftStrength: numbertransitionSpeed: numberpreventSelfLift: booleanscaleWithGravity: booleanscaleWithPressure: boolean
All Versions
+ Add Version- New block details under
sablekey! - Updating CC: Advanced Math to 0.3.6!
- Updating documentation and README!
- New block details under
sablekey! - Updating CC: Advanced Math to 0.3.6!
- Updating documentation and README!
- Updating CC: Advanced Math to 0.3.5
- Updating CC: Advanced Math to 0.3.5
- Made all
@LuaFunctions run on the main thread in hopes of fixing issue #6
- Made all
@LuaFunctions run on the main thread in hopes of fixing issue #6
- Fixed a typo in the parsing of
Quaterniondcs
- Fixed a typo in the parsing of
Quaterniondcs
- Fixed Advanced Math git submodule not being pulled and thus bundled
- Fixed Advanced Math git submodule not being pulled and thus bundled
- Adding Aero/Aerodynamics API
- Adding Aero/Aerodynamics API
- Fixed missing Advanced Math bundle
- Fixed missing Advanced Math bundle
- Added new functions:
- setName
- getLinearVelocity
- getAngularVelocity
- getCenterOfMass
- getMass
- getInverseMass
- getInertiaTensor
- getInverseInertiaTensor
- Added new functions:
- setName
- getLinearVelocity
- getAngularVelocity
- getCenterOfMass
- getMass
- getInverseMass
- getInertiaTensor
- getInverseInertiaTensor
- Switched to Sable proper!
- Tested and Fixed
sublevel.luawrapper!
- Switched to Sable proper!
- Tested and Fixed
sublevel.luawrapper!
- Added
getVelocityandisInPlotYardto Sub-Level API
- Added
getVelocityandisInPlotYardto Sub-Level API