载入中...
搜索中...
未找到
eve::physics::Rope类 参考final

Optional physics satellite that owns rope construction, schema, and script bindings. 更多...

#include <Rope.h>

类 eve::physics::Rope 继承关系图:
eve::Module

Public 成员函数

 Module_REG (Rope)
 
Rope3D * newRope3D (int particleCount, float startX, float startY, float startZ, float endX, float endY, float endZ)
 Creates a straight renderer-independent rope.
 
eve::Result< void > registerRope3DCreateSchema ()
 Registers physics:rope3d-create@1 for tools and editors.
 
eve::Result< Rope3D * > newRope3DFromJson (const std::string &json)
 Validates a versioned creation document and transfers the new rope to the caller.
 
Rope3D * newRope3DFromJsonScript (const std::string &json)
 Script facade that projects creation failure to an exception.
 
- Public 成员函数 继承自 eve::Module
virtual ~Module ()
 Module.
 
virtual std::string getName () const =0
 Returns the name.
 

详细描述

Optional physics satellite that owns rope construction, schema, and script bindings.

在文件 Rope.h 第 15 行定义.

成员函数说明

◆ Module_REG()

eve::physics::Rope::Module_REG ( Rope  )

◆ newRope3D()

Rope3D * eve::physics::Rope::newRope3D ( int  particleCount,
float  startX,
float  startY,
float  startZ,
float  endX,
float  endY,
float  endZ 
)

Creates a straight renderer-independent rope.

返回
Owning pointer transferred to the caller. @ownership The caller owns and destroys the returned Rope3D. @lifetime Valid until caller destruction; this module retains no reference.

在文件 Rope.cpp 第 106 行定义.

引用了 count, sx, sy , 以及 sz.

◆ newRope3DFromJson()

eve::Result< Rope3D * > eve::physics::Rope::newRope3DFromJson ( const std::string &  json)

Validates a versioned creation document and transfers the new rope to the caller.

在文件 Rope.cpp 第 112 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, registerRope3DCreateSchema() , 以及 eve::schema::SchemaRegistry::validate().

◆ newRope3DFromJsonScript()

Rope3D * eve::physics::Rope::newRope3DFromJsonScript ( const std::string &  json)

Script facade that projects creation failure to an exception.

返回
Owning pointer transferred to the script VM. @ownership The script VM assumes ownership of the returned Rope3D. @lifetime Valid until the script wrapper is collected.

在文件 Rope.cpp 第 168 行定义.

引用了 created.

◆ registerRope3DCreateSchema()

eve::Result< void > eve::physics::Rope::registerRope3DCreateSchema ( )

Registers physics:rope3d-create@1 for tools and editors.

在文件 Rope.cpp 第 110 行定义.

被这些函数引用 newRope3DFromJson().


该类的文档由以下文件生成: