Move notes into example application section
This commit is contained in:
+3
-5
@@ -110,6 +110,9 @@ write your application in C++ and compile it using Emscripten, you may want to
|
|||||||
copy a subset of the `EMSCRIPTEN_BINDINGS` from `bindings.cc` into your
|
copy a subset of the `EMSCRIPTEN_BINDINGS` from `bindings.cc` into your
|
||||||
application’s source file.
|
application’s source file.
|
||||||
|
|
||||||
|
The package is ESM (`type: module`) and ships TypeScript types.
|
||||||
|
Ensure your bundler or dev server serves the `.wasm` asset at runtime.
|
||||||
|
|
||||||
### Named Access
|
### Named Access
|
||||||
|
|
||||||
The bindings support named access methods, similar to the Python bindings,
|
The bindings support named access methods, similar to the Python bindings,
|
||||||
@@ -300,11 +303,6 @@ mujoco.get_mjFRAMESTRING()
|
|||||||
|
|
||||||
This will return a javascript array representation of the values in MuJoCo `mjFRAMESTRING`.
|
This will return a javascript array representation of the values in MuJoCo `mjFRAMESTRING`.
|
||||||
|
|
||||||
### About assets
|
|
||||||
The package is ESM (`type: module`) and ships TypeScript types.
|
|
||||||
|
|
||||||
Ensure your bundler or dev server serves the `.wasm` asset at runtime.
|
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
In order to change the bindings you will need to change the [`bindings.cc`](codegen/generated/bindings.cc)
|
In order to change the bindings you will need to change the [`bindings.cc`](codegen/generated/bindings.cc)
|
||||||
|
|||||||
Reference in New Issue
Block a user