Aragorn Schism Posted August 26, 2020 Posted August 26, 2020 I was going to ask a question about llPushObject but let me describe the objective first, in case my understanding or approach is incorrect: The components involved are: an avatar, an animation, an object and a moving object. The object (call it a sofa) includes an xPose engine which uses pose balls. The animation poses the avatar so that it looks correct, sitting on the sofa. The moving object (call it a sofa cushion) will move up and down and is not linked to the sofa. Now, the objective is to have the moving sofa cushion cause the avatar to bounce and taking advantage of physics (gravity), land back on the sofa in the same location. Then the cycle will be repeated, so the avatars starting position prior to “push” should be constant. Before I spend time trying to use llPush am I correct in the following: I can add the animation to the sofa and use xPose to rez a pose ball for the avatar to sit on. My understanding is once seated the avatar will not be effected by the llPushObject of the sofa cushion. Also normal physics is shut off because the avatar is on a pose ball. ((anti griefing measures, I believe.) Is my understanding correct? If not, I will give llPushObject a try and see how it goes. If correct, what approach would be viable? Along those lines, I can easily find in the wiki.secondlife.com a concise description of llPushObject. Where is a good place to find a lot more examples and detail? Thanks
Rolig Loon Posted August 26, 2020 Posted August 26, 2020 (edited) Right. You cannot llPush a seated avatar. In fact, that's why we always tell newbies that the most effective way to avoid people who are trying to shove you or send you into orbit is to sit down. There are other things you can do, though. If you can get the avatar to wear a scripted attachment or to sit on a scripted seat, you can move the attachment/seat and the avatar with any of the standard functions (llMoveToTarget, llSetKeyframedMotion, llSetRegionPos, llTeleportAgent ...). After all, that's how a lot of teleporters and vehicles work. If you are clever, you can make some of those movements look fast and random enough to be like bouncing. And then you just llSetRegionPos back to the starting position. Edited August 26, 2020 by Rolig Loon typos. as always.
DoteDote Edison Posted August 26, 2020 Posted August 26, 2020 Another option, create an avatar animation that simulates the avatar flying off the cushion, a few feet in-air, then back down. Trigger the animation when the avatar should bounce, then back to the regular pose animation. 2
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now