Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
setting friction? #19282
11/03/03 03:56
11/03/03 03:56
Joined: Aug 2002
Posts: 60
Dallas, TX
ptmontgomery Offline OP
Junior Member
ptmontgomery  Offline OP
Junior Member

Joined: Aug 2002
Posts: 60
Dallas, TX
When trying to activate sounds that play when obkects collide, I've tried both enable_friction and phent_sefriction -in both cases I get error messages from the compiler. "Parameter unknown enable_friction Parameter".

Suggestions??


Gamestudio development team since 1999!
Re: setting friction? [Re: ptmontgomery] #19283
12/03/03 18:56
12/03/03 18:56
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
i have the same problem! why doesn't enable_friction work?

Re: setting friction? [Re: ventilator] #19284
12/04/03 08:02
12/04/03 08:02
Joined: Mar 2003
Posts: 5,377
USofA
fastlane69 Offline
Senior Expert
fastlane69  Offline
Senior Expert

Joined: Mar 2003
Posts: 5,377
USofA
enable_frinction is usable with ent_move.

phent_setfriction is usable with the Physics Engine.

You cannot mix these function....either use enable_friction and dont' register you object with the physics engine OR use phent_setfriction, which would require you register with teh physics engine, but you lose on any collision detection events; can't use any triggering or any enable commands refering to ent_move if registered with the physics engine

enable_friction keyword unknown!? [Re: fastlane69] #19285
12/16/03 07:30
12/16/03 07:30
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
i thought enable_friction is meant for physics objects? this really confuses me. a quote from the manual:

Quote:

EVENT_friction
entity.enable_friction

If a physics entity collides with another model, the physics entity will receive this event. TARGET and NORMAL are set to point of impact and hit surface normal, respectively. If two physics entities collide, each will receive an EVENT_FRICTION




did you use enable_friction recently? the keyword seems to be unknown. this is really strange!

Re: enable_friction keyword unknown!? [Re: ventilator] #19286
12/16/03 11:40
12/16/03 11:40
Joined: Mar 2003
Posts: 5,377
USofA
fastlane69 Offline
Senior Expert
fastlane69  Offline
Senior Expert

Joined: Mar 2003
Posts: 5,377
USofA
I had thought that I couldn't do any event handling concerning moving if I was currently registered with the PE. Also, as I look at the diffrent events, they all refer to ent_move or c_ent_move. Friction and Block "seems" to be the only events that uses the word "physics" in it; perhaps a relic of the accelerate days?

But no, I have not used .enable_friction lately since I use the PE for my friction, hence I use phent_setfrictio.

Re: enable_friction keyword unknown!? [Re: fastlane69] #19287
12/17/03 12:31
12/17/03 12:31
Joined: Sep 2003
Posts: 3,236
San Diego, CA
M
Marco_Grubert Offline
Expert
Marco_Grubert  Offline
Expert
M

Joined: Sep 2003
Posts: 3,236
San Diego, CA
Strange. The code is still there, as is the defintion for EVENT_FRICTION, but I can't find ENABLE_FRICTION either. Must have gotten deleted by accident.

Phent_setfriction() only sets the automatic friction handling- it's not related to user event handling at all. The right way as you stated is to use ENABLE_FRICTION and then define an EVENT_FRICTION handler.

Re: enable_friction keyword unknown!? [Re: Marco_Grubert] #19288
12/17/03 12:37
12/17/03 12:37
Joined: Mar 2003
Posts: 5,377
USofA
fastlane69 Offline
Senior Expert
fastlane69  Offline
Senior Expert

Joined: Mar 2003
Posts: 5,377
USofA
So am I right in saying that using the PE you can't use collision detection event handleing or can we still use events while under the control of the PE?

Re: enable_friction keyword unknown!? [Re: fastlane69] #19289
12/17/03 18:55
12/17/03 18:55
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I confirm that enable_friction was not there. Somehow it didn't make it in the final 6.2 version - I suspect that it was accidentally deleted.

There is a workaround to set enable_friction. Try the following:

my.skill_a |= 1>>4;

(not tested yet, but should do the trick).

Re: enable_friction keyword unknown!? [Re: jcl] #19290
12/18/03 05:12
12/18/03 05:12
Joined: Mar 2003
Posts: 5,377
USofA
fastlane69 Offline
Senior Expert
fastlane69  Offline
Senior Expert

Joined: Mar 2003
Posts: 5,377
USofA
I don't see it JCL. What is my.skill_a? That's a particle skill, isn't it? Why would right shifting a particle skill be a work around to enable_friction...


Re: enable_friction keyword unknown!? [Re: fastlane69] #19291
12/18/03 08:40
12/18/03 08:40
Joined: Oct 2003
Posts: 1,258
Virginia, USA
qwerty823 Offline
Senior Developer
qwerty823  Offline
Senior Developer

Joined: Oct 2003
Posts: 1,258
Virginia, USA
My "guess" is that skill_a and the value that holds the enable_* flags has the same offset in the C struct, so one becomes the same as the other. This makes sense in a way since things like .x and .pan can be interchanged with things needing a vector.


Never argue with an idiot. They drag you down to their level then beat you with experience
Page 1 of 2 1 2

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1