We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af86842 commit d58801aCopy full SHA for d58801a
src/content_cao.cpp
@@ -516,6 +516,11 @@ void GenericCAO::addToScene(ITextureSource *tsrc)
516
video::S3DVertex( dx, dy, 0, 0,0,0, c, 0,0),
517
video::S3DVertex(-dx, dy, 0, 0,0,0, c, 1,0),
518
};
519
+ if (m_is_player) {
520
+ // Move minimal Y position to 0 (feet position)
521
+ for (video::S3DVertex &vertex : vertices)
522
+ vertex.Pos.Y += dy;
523
+ }
524
u16 indices[] = {0,1,2,2,3,0};
525
buf->append(vertices, 4, indices, 6);
526
// Set material
@@ -535,6 +540,11 @@ void GenericCAO::addToScene(ITextureSource *tsrc)
535
540
video::S3DVertex(-dx, dy, 0, 0,0,0, c, 0,0),
536
541
video::S3DVertex( dx, dy, 0, 0,0,0, c, 1,0),
537
542
543
544
545
546
547
538
548
539
549
550
0 commit comments