What changed between .87 and .89 to cause this

What changed between .87 and .89 to cause this

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
aGorm
Posts: 2927
Joined: 12 Jan 2005, 10:25

What changed between .87 and .89 to cause this

Post by aGorm » 18 Aug 2012, 16:20

! change Spring.GetUnitPosition to return a unit's base-position by default, like .GetFeaturePosition does for features
(this is usually a point on the model closer to the ground than its mid-position, so may affect some Lua drawing code)
I think this has borked my script, but I'm not sure what it means?

Image

Is there some way to get the old behavior back?

http://pastebin.com/u9S9g22u <-- script.

Thanks

aGorm
Attachments
whywhywhy.jpg
(405.18 KiB) Downloaded 2 times
0 x

User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: What changed between .87 and .89 to cause this

Post by jK » 18 Aug 2012, 16:33

! remove modelCenterOffset tag (can now be dynamically set with Lua)
0 x

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: What changed between .87 and .89 to cause this

Post by knorke » 20 Aug 2012, 01:17

hm, isnt the change that in 87 GetUnitPosition returned the center of the model ("the hip") and in 89 it returns where the unit touches the ground? ("the feet")

if so, change to
unitposx,unitposy,unitposz = Spring.GetUnitPosition(unitID, true)
or is it (unitID, false, true)

Spring.GetUnitPosition
( number unitID, [, boolean midPos [, boolean aimPos ] ] )
0 x

Post Reply

Return to “Game Development”