Korman 0.1 and Subworld collisions

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!
Post Reply
User avatar
boblishman
Posts: 882
Joined: Fri Oct 05, 2007 4:47 pm
MOULa KI#: 0
Location: Spain

Korman 0.1 and Subworld collisions

Post by boblishman »

Been trying all day to get collisions to work in my subword to no avail.

The subword works but when I enter the subword region I immediately fall though the floor.
I know I am in the subworld because I have it set to rotating around an empty and I can see rest of the age rotating as I fall into the abyss ... :o

I have added extra planes, cubes, tried all three types of subworld modifier (Auto,Dynamic,Seperate) on the collider , moved the subworld empty, everything I can think of.

Yes, I am using the convex hull setting for the "main collider" in the subworld - as it is a cube! (This is the "ground" in the subworld).

Are collisions "broken" in subworlds or an I just missing something dead obvious??
when it comes to Age creation ... "DOH" seems to be my middle name...
JulyForToday
Posts: 118
Joined: Sat Sep 29, 2007 5:34 am
MOULa KI#: 0
Contact:

Re: Korman 0.1 and Subworld collisions

Post by JulyForToday »

FYI, I am having the same problem, and also made a post (in the Scripting section -- not particularly sure which section is more appropriate for this kind of problem).
SereneTiki
Posts: 34
Joined: Fri May 08, 2020 8:04 pm

Re: Korman 0.1 and Subworld collisions

Post by SereneTiki »

I make sure collision surfaces aren't scaled. Sometimes I need to perform "apply location" for them to end up positioned correctly.
The problems I encountered are: collisions don't work without animation and having animation forces collisions.
To correct the above issues I've had to mod korman\exporter\physics.py. I have only tested the mods in POTS. Perhaps more testing would be useful...

beginning at line 214 (in my copy):
# MOUL: only objects that have animation data are kPhysAnim
if mod.enabled and (ver != pvMoul or bo_xformed): #MOD
_set_phys_prop(plSimulationInterface.kPhysAnim, simIface, physical)
# PotS: objects inheriting parent animation only are not pinned <- is this correct?
# MOUL: animated objects in subworlds are not pinned
if ver != pvMoul or subworld is None: #MOD
_set_phys_prop(plSimulationInterface.kPinned, simIface, physical)
# MOUL: child objects are kPassive
SereneTiki
Posts: 34
Joined: Fri May 08, 2020 8:04 pm

Re: Korman 0.1 and Subworld collisions

Post by SereneTiki »

Oops. The forum interface removes the code indentation. Oh, well. Let me know if I should try to show indentation.
Maroonroon
Posts: 277
Joined: Sun Jul 06, 2014 5:03 pm
MOULa KI#: 0
Location: France
Contact:

Re: Korman 0.1 and Subworld collisions

Post by Maroonroon »

SereneTiki wrote:Oops. The forum interface removes the code indentation. Oh, well. Let me know if I should try to show indentation.

You need the "code" tag:

Code: Select all

# MOUL: only objects that have animation data are kPhysAnim
if mod.enabled and (ver != pvMoul or bo_xformed): #MOD
   _set_phys_prop(plSimulationInterface.kPhysAnim, simIface, physical)
# PotS: objects inheriting parent animation only are not pinned <- is this correct?
# MOUL: animated objects in subworlds are not pinned
if ver != pvMoul or subworld is None: #MOD
   _set_phys_prop(plSimulationInterface.kPinned, simIface, physical)
# MOUL: child objects are kPassive
SereneTiki
Posts: 34
Joined: Fri May 08, 2020 8:04 pm

Re: Korman 0.1 and Subworld collisions

Post by SereneTiki »

Thank you!

Since we're here, another issue I have run into is that sometimes all of the items in a subworld need to be on the same Plasma page as the subworld empty.
SereneTiki
Posts: 34
Joined: Fri May 08, 2020 8:04 pm

Re: Korman 0.1 and Subworld collisions

Post by SereneTiki »

Please note that Korman 0.11 has made the experimental fix moot.
SereneTiki
Posts: 34
Joined: Fri May 08, 2020 8:04 pm

Re: Korman 0.1 and Subworld collisions

Post by SereneTiki »

Shorah, Explorers!

Here is the latest version. I don't know if it works on Deep Island, yet. The ground floor animation sensor didn't trigger in DI for my previous version. This version hasn't been uploaded, yet. I'm working through 0.11a issues as well.

Again, no special subworld patch is needed for Korman 0.11 or 0.11a.

https://app.box.com/s/q9d7o1odc2vmb1vg1sxebc3eykv6yvi6

TikiBear/SereneTiki
Post Reply

Return to “Building”