载入中...
搜索中...
未找到
WorldSphereSweepScript.cpp
浏览该文件的文档.
9eve::Result<void> applySweepImpulse(World3D& world, const ssq::Object& event, PhysicsVector3D impulse,
17 const char* fields[] = {"worldIndex", "worldGeneration", "bodyIndex", "bodyGeneration", "bodyId"};
46ssq::Table projectSweepContactImpulse(World3D* world, const ssq::Object& event, PhysicsVector3D impulse,
52 eve::Diagnostic::error(eve::DiagnosticCode::InvalidArgument, "World3D must not be null", "world")));
The single Squirrel projection for common Result, Status and Value.
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.cpp:21
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:196
Box3D rigid-body world. Script coordinates are meters (Box3D native), unlike 2D World which uses pixe...
Definition World3D.h:47
ssq::Table projectSweepContactImpulse(World3D *world, const ssq::Object &event, PhysicsVector3D impulse, PhysicsVector3D point)
Project an explicit contact impulse through the canonical script Result boundary.
Definition WorldSphereSweepScript.cpp:46
ssq::Table projectResult(HSQUIRRELVM vm, Result< void > &&result)
Consume and project a void native Result using the common schema.
Definition SquirrelBinding.cpp:540
Result< Value > valueFromSquirrel(HSQUIRRELVM vm, SQInteger index, const SquirrelValueOptions &options)
Convert one Squirrel value into the canonical owning Value tree.
Definition SquirrelBinding.cpp:412
@ InvalidArgument
Result< std::int64_t > readInt64Value(const Value &value)
Read an Int64 without narrowing or numeric coercion.
Definition Value.cpp:57
Result< std::uint32_t > readUInt32Value(const Value &value)
Read an Int64 as a range-checked UInt32 without numeric coercion.
Definition Value.cpp:65
Owning sphere sweep contact; position is the moving sphere center, not the obstacle surface.
Definition WorldSphereSweep.h:18
Allocation-free owning three-dimensional physics value.
Definition RigidTypes3D.h:4