About Store Forum Documentation Contact



Post Reply 
[SOLVED] No collision
Author Message
Mardok Offline
Member

Post: #1
[SOLVED] No collision
Hi Greg,

This bug is related to this my thread and starts occur in the same time: https://esenthel.com/forum/showthread.php?tid=9474

I checked everything on my side and found how to reproduce this bug.
Just download sample project and there is everything described.

In short:
If set actor.collision(false) in Obj::create function and try set actor.collision(true) in game loop, collision isnt occurs.

Your solution (Esenthel said):
Quote:One workaround is to call Physics.stopSimulation(); after Game.World.update();

Dosn't work in this case.

   


Attached File(s)
.7z  BugPhysicsCollision.7z (Size: 16.14 KB / Downloads: 1)
(This post was last modified: 05-14-2019 09:31 PM by Mardok.)
05-09-2019 10:04 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: [BUG] No collision
Good news, I was able to find a workaround for this problem:
https://github.com/Esenthel/EsenthelEngi...bcead77472
05-10-2019 02:41 PM
Find all posts by this user Quote this message in a reply
Mardok Offline
Member

Post: #3
RE: [BUG] No collision
(05-10-2019 02:41 PM)Esenthel Wrote:  Good news, I was able to find a workaround for this problem:

Ufff, I was afraid its too hard for you wink

TY
05-10-2019 08:30 PM
Find all posts by this user Quote this message in a reply
Mardok Offline
Member

Post: #4
RE: [BUG] No collision
Hmm,
I think something still could be wrong... Maybe on my side but im 99,9% sure my code is ok because worked without any problems on android and pc but on old EE versions ~7 months ago :(

Sample above after your patch works correct but in my app bug is still there. I use simple trigger mechanism to switch collision state maybe problem comes from there... You changed actor::collision method and i use only this method so it should work correct, but not work :/

Tommorow at night I'll try prepare another sample which represents all steps directly same as in my app to reproduce this.

Just chill now and good night. There is no pression.
05-11-2019 11:28 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #5
RE: [BUG] No collision
FYI: in physx an actor can't have collisions and be a trigger at the same time.
05-12-2019 01:59 AM
Find all posts by this user Quote this message in a reply
Mardok Offline
Member

Post: #6
RE: [BUG] No collision
(05-12-2019 01:59 AM)Esenthel Wrote:  FYI: in physx an actor can't have collisions and be a trigger at the same time.

Yes yes. Its basic knowledge xD
I have an idea how prepare example and We'll see.
(This post was last modified: 05-12-2019 06:30 AM by Mardok.)
05-12-2019 06:12 AM
Find all posts by this user Quote this message in a reply
Post Reply