Gamestudio Links
Zorro Links
Newest Posts
Alpaca Plugin v1.5.2 Release
by kzhao. 01/11/26 13:42
Alpaca Plugin v1.4.0
by kzhao. 01/11/26 13:38
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
NOMAX undeclared identifier.
by Petra. 01/09/26 21:12
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 2,814 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
joe_kane, Namitha_NN, Syndrela, agasior, mosfet
19189 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