mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-06-12 19:41:16 +00:00
fix this null texture and also fix marble select being broken
This commit is contained in:
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 |
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue