[slscripters] PRIM_PHYSICS_MATERIAL live?

3 views
Skip to first unread message

Jack Abraham

unread,
Oct 25, 2011, 10:19:14 PM10/25/11
to SL Scripters
Has anyone used PRIM_PHYSICS_MATERIAL in anything on the main grid yet? The release notes on server 11.09.23.241511 seem to suggest it should be live, but when I try to use it the compiler says the variable hasn't been declared, which suggests the constant at least is missing. I haven't tried llSetPhysicsMaterial() yet.

--
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

Ima Mechanique

unread,
Oct 26, 2011, 12:02:57 AM10/26/11
to secondlif...@lists.secondlife.com
> Has anyone used PRIM_PHYSICS_MATERIAL in anything on the main grid yet?
>The release notes on server 11.09.23.241511 seem to suggest it should be
> live, but when I try to use it the compiler says the variable hasn't
> been declared, which suggests the constant at least is missing. I
> haven't tried llSetPhysicsMaterial() yet.

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

Jack Abraham

unread,
Oct 26, 2011, 12:39:48 AM10/26/11
to SL Scripters

On Oct 26, 2011, at 12:02 AM, Ima Mechanique wrote:

> 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

_______________________________________________

Ima Mechanique

unread,
Oct 26, 2011, 12:50:05 AM10/26/11
to secondlif...@lists.secondlife.com
>
> On Oct 26, 2011, at 12:02 AM, Ima Mechanique wrote:
>
> > 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.

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

_______________________________________________

Nexii Malthus

unread,
Oct 26, 2011, 3:01:08 AM10/26/11
to Ima Mechanique, secondlif...@lists.secondlife.com


Mind that there are some hard limits on values.

llSetPrimitiveParams([ PRIM_PHYSICS_MATERIALinteger material_bitsfloat gravity_multiplierfloat restitutionfloat frictionfloat density ]);
• integermaterial_bitsbitwise combination of DENSITYFRICTIONRESTITUTION, and GRAVITY_MULTIPLIER and specifies which floats to actually apply
• floatgravity_multiplierrange [-1.0, +28.0]
• floatrestitutionrange [0.0, 1.0]
• floatfrictionrange [0.0, 255.0]
• floatdensityrange [1.0, 22587.0] kg/m^3

- Nexii Malthus

Ima Mechanique

unread,
Oct 26, 2011, 3:12:24 AM10/26/11
to secondlif...@lists.secondlife.com

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>

Reply all
Reply to author
Forward
0 new messages