fix standing sign rotation step
This commit is contained in:
parent
19ad1e58c3
commit
d40f388b6e
2 changed files with 4 additions and 3 deletions
|
|
@ -117,8 +117,9 @@ class WorldRenderer {
|
|||
}
|
||||
|
||||
const group = new THREE.Group()
|
||||
const rotateStep = isWall ? 2 : 4
|
||||
group.rotation.set(0, -(Math.PI / rotateStep) * rotation, 0)
|
||||
group.rotation.set(0, -THREE.MathUtils.degToRad(
|
||||
rotation * (isWall ? 90 : 45 / 2)
|
||||
), 0)
|
||||
group.add(mesh)
|
||||
const y = isWall ? 4.5 / 16 + mesh.scale.y / 2 : (1 - (mesh.scale.y / 2))
|
||||
group.position.set(position.x + 0.5, position.y + y, position.z + 0.5)
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@ const handleSign = async (dataBase: string, match: RegExpExecArray) => {
|
|||
Array.from({ length: 16 }).map((_val, i) => {
|
||||
return [`rotation=${i}`, {
|
||||
"model": currentBlockName,
|
||||
y: i * 45,
|
||||
y: i * (45 / 2),
|
||||
}]
|
||||
})
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue