About Store Forum Documentation Contact



Post Reply 
Physics not scaling disproportionately
Author Message
Nox_A15 Offline
Member

Post: #1
Physics not scaling disproportionately
Topic says it all. smile When we have some objects scaled disproportionately on the map, everything works fine in the editor (v. 1.0) - when I turn on physics visibility, it looks fine. But when I run a compiled map, physics scale as if their original objects were scaled proportionately. Is it a bug or something in our code?
(This post was last modified: 01-05-2013 12:38 PM by Nox_A15.)
01-05-2013 12:38 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #2
RE: Physics not scaling disproportionately
Is it related to Game.Static or Game.Kinematic with non-uniform scale, and objects being rotated?
If yes then I fixed one bug recently (will be available in next SDK).

If not, please attach screens from Editor, Game, and object properties (scale), its rotation axis, and original phys body (from physics editor)
01-05-2013 01:41 PM
Find all posts by this user Quote this message in a reply
Nox_A15 Offline
Member

Post: #3
RE: Physics not scaling disproportionately
I'm refreshing the topic. Version 1.0 still includes this bug. Please consider dealing with it ASAP. Some of our maps are useless after compilation right now.

I attach a screenshot with rendered physics. These yellow placeholders are scaled non-uniformly and rotated, but physics after compilation scales uniformly.


Attached File(s) Image(s)
   
01-27-2013 09:42 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #4
RE: Physics not scaling disproportionately
Hi, yeah, as I mentioned in last post the fix will be in next SDK.
It should actually be available tomorrow or after tomorrow if I make it with everything.
01-27-2013 09:47 PM
Find all posts by this user Quote this message in a reply
Nox_A15 Offline
Member

Post: #5
RE: Physics not scaling disproportionately
Unfortunately, new version have the same bug. :/
02-01-2013 03:59 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #6
RE: Physics not scaling disproportionately
Are you using custom game object C++ classes for those objects? If so you need to adjust your codes to use 'scaleOrnL' instead of 'scaleOrn' (look into updated game object static/kinematic sources)

If you're using default classes/embed into terrain, then can you attach sample object (.obj, .mesh, .phys) and world (.world) with that object that shows the error?
02-01-2013 04:39 PM
Find all posts by this user Quote this message in a reply
Nox_A15 Offline
Member

Post: #7
RE: Physics not scaling disproportionately
Sorry for leaving this topic for so long. I just tested the newest version of Esenthel Editor and created a map with some basic objects on it. I attached a problem description (in Polish only) in the package.

https://dl.dropbox.com/u/32968434/Esenth...roblem.zip
04-04-2013 05:09 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #8
RE: Physics not scaling disproportionately
Hi,

I've just tested the world, and I get the same results from Editor and from Editor Play Game mode.


Attached File(s) Image(s)
       
04-05-2013 12:21 PM
Find all posts by this user Quote this message in a reply
Nox_A15 Offline
Member

Post: #9
RE: Physics not scaling disproportionately
But judging from screenshots you haven't tried to fly with player character around the objects. Those very tall should have a huge invisible wall around them, because physics scale uniformly even when object is scaled non-uniformly. This is an issue only in Editor Play Mode (and in the game as well).

So something is probably wrong with compilation process.

PS
Turn on the physics view in Play Mode - everything will be clear then. It should look like here:
http://www.esenthel.com/community/showth...2#pid36042
(This post was last modified: 04-05-2013 07:35 PM by Nox_A15.)
04-05-2013 07:22 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #10
RE: Physics not scaling disproportionately
I'm testing this now
04-05-2013 07:36 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #11
RE: Physics not scaling disproportionately
Thank you for providing the data, fix for OBox based scaled phys body actors will be in next release smile
04-06-2013 01:40 PM
Find all posts by this user Quote this message in a reply
Nox_A15 Offline
Member

Post: #12
RE: Physics not scaling disproportionately
Thank you. smile Glad I was able to help.
04-07-2013 04:31 PM
Find all posts by this user Quote this message in a reply
Post Reply