Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,633 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Problem with ENABLE_FRICTION #211459
06/16/08 20:02
06/16/08 20:02
Joined: Feb 2008
Posts: 39
R
RicheyMB2 Offline OP
Newbie
RicheyMB2  Offline OP
Newbie
R

Joined: Feb 2008
Posts: 39
I am having a problem with friction events. I have 1 'PhysicsBlock' object in my world and as soon as it rests on the ground the engine crashes out.

The code is as follows, if anyone can tell me where I'm going wrong that would be great!

Code:
function impact_event()
{
	return;	
}

action PhysicsBlock()
{

	phent_settype(me,PH_RIGID, PH_BOX);
	phent_setmass(me, 10, PH_BOX);
	phent_setfriction(me, 90);
	phent_setelasticity(me, 30, 100);
	phent_setdamping(me, 15,15);
	//phent_setgroup(me,5);
	set(me,SHADOW);
	my.emask |= ENABLE_FRICTION;
 	my.event = impact_event();	
	while(1)
	{
		wait(1);	
	}
}
 


Re: Problem with ENABLE_FRICTION [Re: RicheyMB2] #211480
06/16/08 21:26
06/16/08 21:26
Joined: Jun 2008
Posts: 8
Turkiye
L
LaQroix Offline
Newbie
LaQroix  Offline
Newbie
L

Joined: Jun 2008
Posts: 8
Turkiye
Normally u should have a warning but since 7.07 version is buged u are on your own to realize ur mistake. I think ur mistake is at my.event = impact_event line. Probably the correct form is without brackets. -- my.event = impact_event; --

Re: Problem with ENABLE_FRICTION [Re: LaQroix] #211586
06/17/08 12:11
06/17/08 12:11
Joined: Feb 2008
Posts: 39
R
RicheyMB2 Offline OP
Newbie
RicheyMB2  Offline OP
Newbie
R

Joined: Feb 2008
Posts: 39
Thanks.


Moderated by  HeelX, Spirit 

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