use of net.drewke.tdme.tools.shared.model.LevelEditorEntityBoundingVolume in project tdme by andreasdr.
the class EntityBoundingVolumeView method applyBoundingVolumeNone.
/**
* On bounding volume none apply
* @param entity
* @param bounding volume index
*/
public void applyBoundingVolumeNone(LevelEditorEntity entity, int idx) {
// exit if no entity
if (entity == null)
return;
//
LevelEditorEntityBoundingVolume entityBoundingVolume = entity.getBoundingVolumeAt(idx);
entityBoundingVolume.setupNone();
updateModelBoundingVolume(entity, idx);
}
use of net.drewke.tdme.tools.shared.model.LevelEditorEntityBoundingVolume in project tdme by andreasdr.
the class EntityBoundingVolumeView method applyBoundingVolumeSphere.
/**
* On bounding volume sphere apply
* @param entity
* @param bounding volume index
* @param sphere center
* @param radius
*/
public void applyBoundingVolumeSphere(LevelEditorEntity entity, int idx, Vector3 center, float radius) {
// exit if no entity
if (entity == null)
return;
LevelEditorEntityBoundingVolume entityBoundingVolume = entity.getBoundingVolumeAt(idx);
entityBoundingVolume.setupSphere(center, radius);
updateModelBoundingVolume(entity, idx);
}
Aggregations