mujoco-react 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +80 -98
- package/dist/index.d.ts +1 -7
- package/dist/index.js +533 -530
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/core/MujocoSimProvider.tsx +2 -0
- package/src/index.ts +0 -1
package/package.json
CHANGED
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
} from 'react';
|
|
16
16
|
import * as THREE from 'three';
|
|
17
17
|
import { MujocoData, MujocoModel, MujocoModule, getContact } from '../types';
|
|
18
|
+
import { SceneRenderer } from '../components/SceneRenderer';
|
|
18
19
|
import {
|
|
19
20
|
ActuatorInfo,
|
|
20
21
|
BodyInfo,
|
|
@@ -922,6 +923,7 @@ export function MujocoSimProvider({
|
|
|
922
923
|
|
|
923
924
|
return (
|
|
924
925
|
<MujocoSimContext.Provider value={contextValue}>
|
|
926
|
+
<SceneRenderer />
|
|
925
927
|
{children}
|
|
926
928
|
</MujocoSimContext.Provider>
|
|
927
929
|
);
|
package/src/index.ts
CHANGED
|
@@ -32,7 +32,6 @@ export { useIk } from './core/IkContext';
|
|
|
32
32
|
export type { IkContextValue } from './core/IkContext';
|
|
33
33
|
|
|
34
34
|
// Components
|
|
35
|
-
export { SceneRenderer } from './components/SceneRenderer';
|
|
36
35
|
export { IkGizmo } from './components/IkGizmo';
|
|
37
36
|
export { ContactMarkers } from './components/ContactMarkers';
|
|
38
37
|
export { DragInteraction } from './components/DragInteraction';
|