fix this null texture and also fix marble select being broken

This commit is contained in:
RandomityGuy 2026-06-12 18:16:43 +01:00
parent 3b84b1f105
commit ea381936cd
2 changed files with 6 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 204 B

After

Width:  |  Height:  |  Size: 372 B

View file

@ -26,6 +26,8 @@ class CollisionWorld {
var dynamicEntitySet:Map<CollisionEntity, Bool> = [];
var built = false;
public function new() {
this.grid = new GridBroadphase();
this.dynamicGrid = new GridBroadphase();
@ -42,6 +44,10 @@ class CollisionWorld {
var intersectionList:Array<CollisionEntity> = [];
public function sphereIntersection(spherecollision:SphereCollisionEntity, timeState:TimeState, contacts:Array<CollisionInfo>) {
if (!built) {
this.build();
built = true;
}
var position = spherecollision.transform.getPosition();
var radius = spherecollision.radius;