Jump to content

How to prevent a seated avatar from adding to vehicle's physics shape?


You are about to reply to a thread that has been inactive for 3113 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I'm working on a small vehicle combat game... literally, the vehicles are tiny - often smaller than the avatar that will be riding on them. Said avatar will be folded up, have no attachments and will be wearing an alpha skin to hide it from view. My concern is what about the physical representation of the seated avatar. I've done a basic test (sitting on a physical sphere) and have confirmed that the avatar's physics shape is added to a link set's. This presents a problem for my project due to the reduced scale at which the game will operate.

Even with the sit target of each vehicle moved to the center of the object, it is very likely that the avatar will be bulging out of it. I can think of two problems this will raise:

  1. weapons fire that would normally miss the vehicle might register a hit on the avatar instead.
  2. maneuvering the vehicle through a tight space may cause it to get caught on the avatar's physical representation - when the vehicle itself would normally be able to squeeze through.


Is there any way for me to have the avatar's natural collision box not contribute to vehicle's physics shape?

Link to post
Share on other sites

Never tried it, but since (like you say) avatars are treated as linked prims, wouldn't it be possible to toggle the physics shape of the avatar by script using a function like llSetLinkPrimitiveParams -> integer PRIM_PHYSICS=NONE?

@OP

Maybe you could ask in the scripting forum.

Link to post
Share on other sites

I initially thought I could do something like that, but the wiki had a note on the llSetLinkPrimitiveParams pages saying PRIM_PHYSICS_SHAPE_NONE doesn't work for seated avatars... and trying it inworld predictably produces an error  :(


Thanks for the response though. I'll try my luck over in the scripting forum... Is there a way to request a moderator move this topic? Or should I just make a new one there?

Link to post
Share on other sites

Hi :)

Have alook at this:  http://kcp.wikidot.com/wiki:vehiclebuilding101

  I haven't quite got my head around this : "If you make your own animations, you want the hip height of the animation to be at ground sit height or even lower. -2.0m is usually perfect." maybe something else in the section Animation Bounding Box will make sence to u . 

 

 

Link to post
Share on other sites
  • 2 weeks later...

The actual avatars could be flying around far above or below the action (vary the altitude enough to avoid them colliding with each other),  with the camera position at or near where the vehicle is.    They can be below ground level.

llSitTarget only has a range of 300 meters,  but llSetLinkPrimitiveParams can move a seated avatar over 1000 meters away.

 

Link to post
Share on other sites
You are about to reply to a thread that has been inactive for 3113 days.

Please take a moment to consider if this thread is worth bumping.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...