--
Jack Abraham | "Be not intimidated… nor suffer yourselves to be wheedled
jack.abraham | lout of your liberties by any pretense of politeness,
@me.com | delicacy, or decency. These, as they are often used, are
| but three different names for hypocrisy, chicanery and
| cowardice." – John Adams
_______________________________________________
Click here to unsubscribe or manage your list subscription:
https://lists.secondlife.com/cgi-bin/mailman/listinfo/secondlifescripters
Compiles fine for me using v3.1.0. I don't know what variable you're
having a problem with, as llSetPhysicsMaterial() doesn't return a value.
BTW the function and constants will not be highlighted correctly, but
this doesn't matter as the server compiles the script not the viewer.
Ima Mechanique
Check List
1) Check the documentation.
2) Drink coffee.
3) Check the documentation again, to see what I missed first time.
4) If I still can't solve it, ask if anyone else has the answer.
ima.mechanique(at)blueyonder.co.uk
> Compiles fine for me using v3.1.0. I don't know what variable you're
> having a problem with, as llSetPhysicsMaterial() doesn't return a value.
> BTW the function and constants will not be highlighted correctly, but
> this doesn't matter as the server compiles the script not the viewer.
Yeah, I wasn't worried about the lack of syntax highlighting, but the compiler's throwing failures on PRIM_PHYSICS_MATERIAL; I've tried multiple viewers. What server version are you on, Ima? I'm trying to get it to work on Second Life Server 11.10.18.243270.
--
Jack Abraham | "Be not intimidated… nor suffer yourselves to be wheedled
jack.abraham | lout of your liberties by any pretense of politeness,
@me.com | delicacy, or decency. These, as they are often used, are
| but three different names for hypocrisy, chicanery and
| cowardice." – John Adams
_______________________________________________
I only tried it in my home sim, which is on the LeTigre Release Channel,
not that it should make any difference.
To the best of my knowledge PRIM_PHYSICS_MATERIAL is not a valid
constant, at least it is not listed in the release notes. Can you give a
sample of what you're trying to use, it kind of sounds like you're
misunderstanding the function.
Ima Mechanique
Check List
1) Check the documentation.
2) Drink coffee.
3) Check the documentation again, to see what I missed first time.
4) If I still can't solve it, ask if anyone else has the answer.
ima.mechanique(at)blueyonder.co.uk
_______________________________________________
| • integer | material_bits | – | bitwise combination of DENSITY, FRICTION, RESTITUTION, and GRAVITY_MULTIPLIER and specifies which floats to actually apply | |
| • float | gravity_multiplier | – | range [-1.0, +28.0] | |
| • float | restitution | – | range [0.0, 1.0] | |
| • float | friction | – | range [0.0, 255.0] | |
| • float | density | – | range [1.0, 22587.0] kg/m^3 |
I missed the mention in a bug fix ;-( However I still do not see any
mention of it being introduced as a new constant for
llSetLinkPrimitiveParams(). I have looked quite hard, as I'm in the
process of trying to update keywords.ini for all of the missing
constants ;-) I'd appreciate a pointer to anywhere that mentions the
introduction of the constant, and any others not mentioned in the
release notes for this year.
> Even a wiki page: http://wiki.secondlife.com/wiki/PRIM_PHYSICS_MATERIAL
>
> Mind that there are some hard limits on values.
>
> llSetPrimitiveParams <http://wiki.secondlife.com/wiki/LlSetPrimitiveParams>
> ([ *PRIM_PHYSICS_MATERIAL*, integer<http://wiki.secondlife.com/wiki/Integer>
> material_bits, float <http://wiki.secondlife.com/wiki/Float>
> gravity_multiplier, float <http://wiki.secondlife.com/wiki/Float>
> restitution, float <http://wiki.secondlife.com/wiki/Float> friction,
> float<http://wiki.secondlife.com/wiki/Float>
> density ]);
> • integermaterial_bits–bitwise combination of
> DENSITY<http://wiki.secondlife.com/w/index.php?title=DENSITY&action=edit&redlink=1>
> , FRICTION<http://wiki.secondlife.com/w/index.php?title=FRICTION&action=edit&redlink=1>
> , RESTITUTION<http://wiki.secondlife.com/w/index.php?title=RESTITUTION&action=edit&redlink=1>,
> and GRAVITY_MULTIPLIER<http://wiki.secondlife.com/w/index.php?title=GRAVITY_MULTIPLIER&action=edit&redlink=1>
> and
> specifies which floats to actually apply• floatgravity_multiplier–range [-1.0,
> +28.0]• floatrestitution–range [0.0, 1.0]• floatfriction–range [0.0, 255.0]
> • floatdensity–range [1.0, 22587.0]
> kg<http://wiki.secondlife.com/w/index.php?title=LlGetMassMKS&action=edit&redlink=1>