mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix: extended blocks raycast fix
This commit is contained in:
parent
c89d31ca20
commit
b3ae8484a2
4 changed files with 104 additions and 83 deletions
|
|
@ -293,7 +293,7 @@ void PlayerController::updateControls(float delta){
|
|||
player->updateInput(level, input, delta);
|
||||
}
|
||||
|
||||
static int determine_rotation(Block* def, glm::ivec3& norm, glm::vec3& camDir) {
|
||||
static int determine_rotation(Block* def, const glm::ivec3& norm, glm::vec3& camDir) {
|
||||
if (def && def->rotatable){
|
||||
const std::string& name = def->rotations.name;
|
||||
if (name == "pipe") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue