mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
add drop-item model, new block functions
This commit is contained in:
parent
1c4e13dc67
commit
48b5be6bc9
11 changed files with 81 additions and 24 deletions
|
|
@ -32,6 +32,13 @@ rigging::Rig& Entity::getModeltree() const {
|
|||
return registry.get<rigging::Rig>(entity);
|
||||
}
|
||||
|
||||
void Entity::setRig(rigging::RigConfig* rigConfig) {
|
||||
auto& rig = registry.get<rigging::Rig>(entity);
|
||||
rig.config = rigConfig;
|
||||
rig.pose.matrices.resize(rigConfig->getNodes().size(), glm::mat4(1.0f));
|
||||
rig.calculated.matrices.resize(rigConfig->getNodes().size(), glm::mat4(1.0f));
|
||||
}
|
||||
|
||||
Entities::Entities(Level* level) : level(level) {
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue