Add the ability to set an avatar's hover height through a scripted command.
tracked
Anna Salyx
Several of the body vendors include scripts to change the shape of the foot to match the shoe being worn from flat footed to on tip-toes. But when the foot shape changes, the avatar is left hovering in the air, or sinking into the ground and the hover height needs to be manually changed to reflect the new food position. I suggest adding a new LSL command to alter the hover height of the avatar. Thus:
llSetAgentHoverHeight(key Agent, float Distance)
( edit to add a key field to the command. Not surf if it would needed or not. but the the behavior that if the agent key is not also the owner key that the command is either ignored, or an error is shouted on the debug channel )
The distance can either be a fixed value, or a relative value based on the current hover value. Examples.
When I stand barefoot, my hover height is "0.06" -- as shown on the "Avatar > Hover Height > Set Hover Height" slider.
But when I'm wearing heels my hover height is "0.170"
So the "llSetAgentHoverHeight" would either need to set the static values of 0.06, 0.170, and any other needed values for the shoes in question, or adding (+0.102) to the "current' value when putting on heels, and subtracting (-0.102) from the 'current' value when putting on flats.
The actual values, either static or relative would need to be established either by the shoe maker, or the shoe wearer, depending on how the script maker decides best of course.
Log In
Zalificent Corvinus
RLV/RLVa already have a scriptable hover height adjust, have done for over a decade, and since Kitty the Catznip dev is currently working on a version of RLVa for future inclusion in the LL viewer, you might get this via that RLVa implementation, rather than as a change to LSL.
Anna Salyx
Zalificent Corvinus Yes. and I do use that. But having a tool that doesn't rely on RLV would be beneficial, especially for those who are adverse or reticent to having RLV active. Adding an extra command to LSL (and by extension SLua) makes the idea much more accessible to a wider user base.
Zalificent Corvinus
Anna Salyx
LL ARE ADDING RLVa to the LL viewer, the canny for it is marked "Planned".
So this iss happening, eventually.
Anna Salyx
Zalificent Corvinus yes, I know. But even when RLV comes to the main viewer, there are still going to be those who are going to be reluctant (or even simply refuse) to turn it on. And so, again, having a solution that does not rely on RLV being active will be beneficial and broaden the overall amount of users who might benefit from it.
Secondary (and of admittedly lessor consideration) is that the @adjustheight RLV command itself is (in it's simplest form) a CM scale and not a simple 1 to 1 number equivalency with the actual value on the hover-height slider. My 0.170 hover height has to be inputted as "@adjustheight:17.0=force" my 0.06 become 6.0. Not significantly less intuitive, I agree, but still, having a native command that uses the native number scale would be better, IMO.
Nescolet Resident
For manual adjusting hover height quick i use some gestures:
Photo Viewer
View photos in a modal
Robin Lobo
Nescolet Resident Thats very cute. I added a spinner to FS Quick Preferences - lets you adjust in a similar way. I don't like using the slider, it's just awkward.
Photo Viewer
View photos in a modal
Nescolet Resident
Robin Lobo ah nice one. I will use this for finer (0.01) hover adjustment, while the built-in zoffset_xxxx chat commands (Firestorm) use larger 0.05 increments by default but can be adjusted in debug settings.
SungAli Resident
Anticipating other uses besides footwear/position adjustments, I would a corresponding Get Hover Height function as well. This would allow for making accumulating relative adjustments as well. For example, then a wearable skateboard could be added to any other adjustments then with appropriate animations, become one's mode of travel without the use of vehicle physics.
Anna Salyx
SungAli Resident Get hover height is already possible.
list llGetObjectDetails( key id, list params );
using [OBJECT_HOVER_HEIGHT] as the param will return the hover height value of an avatar from the "Avatar > Hover Height > Set Hover Height" slider panel.
Anna Salyx
SungAli Resident but yes, I focused mainly on shoes, but i can see it being used in a variety of different applications.
Anna Salyx
as an added thought after giving some extra consideration: I'd prefer to use fixed values. Different shoes have different elevations depending on how the sole has been made by the creator. Being able to specify a personal hover height per shoe would be much easier than having to calculate the needed adjustment when going from one high heel another with a larger or small platform.
Spidey Linden
updated the status to
tracked
Issue tracked. We have no estimate when it may be implemented. Please see future updates here.