Skip to content

Commit

Permalink
Merge pull request #52 from antpb/1-3-7
Browse files Browse the repository at this point in the history
1-3-7 - Fix NPC text box location
  • Loading branch information
antpb authored Apr 9, 2023
2 parents eb4f20d + 8dbee86 commit aeecb51
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions blocks/environment/components/core/front/NPCObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ export function NPCObject(model) {
>
<Text
font={model.threeObjectPlugin + model.defaultFont}
position={[0.6, (Number(headPositionY) - 1.5), 0]}
position={[0.6, (Number(headPositionY) - 0.5), 0]}
className="content"
scale={[0.5, 0.5, 0.5]}
// rotation-y={-Math.PI / 2}
Expand All @@ -401,7 +401,7 @@ export function NPCObject(model) {
>
{outputJSON && String(outputJSON)}
</Text>
<mesh position={[0.6, (Number(headPositionY) - 1.5), -0.01]}>
<mesh position={[0.6, (Number(headPositionY) - 0.5), -0.01]}>
<planeGeometry attach="geometry" args={[0.65, 1.5]} />
<meshBasicMaterial attach="material" color={0x000000} opacity={0.5} transparent={ true } />
</mesh>
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Requires at least: 5.7
Tested up to: 6.2
Requires PHP: 7.2
Stable tag: 1.3.6
Stable tag: 1.3.7
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Author: antpb
Expand Down Expand Up @@ -42,6 +42,9 @@ It can also be installed manually using a zip file.


== Changelog ==
= 1.3.7 =
Fixed: NPC text was falling into the ground. Moved up closer to NPC head position.

= 1.3.6 =
Added: Compatibility with gltf files using Draco compression
Added: Custom geometry options for 3D Video Block. When selecting a glb to use as your video surface, ensure that you name the object in your glb "screen". More info in this video: https://twitter.com/threeov/status/1643098207361138691?s=20
Expand Down
2 changes: 1 addition & 1 deletion three-object-viewer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Three Object Viewer
* Plugin URI: https://3ov.xyz/
* Description: A plugin for viewing 3D files with support for WebXR and Open Metaverse Interoperability GLTF Extensions.
* Version: 1.3.6
* Version: 1.3.7
* Requires at least: 5.7
* Requires PHP: 7.1.0
* Author: antpb
Expand Down

0 comments on commit aeecb51

Please sign in to comment.