Stupid question about EntityParentNode()

Everything related to 3D programming
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Stupid question about EntityParentNode()

Post by Psychophanta »

From manual:
EntityParentNode()

Syntax

Result = EntityParentNode(#Entity)
Description

Returns the parent NodeID().
Parameters

#Entity The entity to use.

Return value

Returns the parent NodeID(), if any. This can be either a real node, or a bone if the entity is attached to a bone. If the entity has no parent node, it will returns 0.
However, just after creating any Entity, it never returns 0, even no parent node is attached.
Can explain please?
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
Comtois
Addict
Addict
Posts: 1432
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

Re: Stupid question about EntityParentNode()

Post by Comtois »

it's done internally. For an entity to be visible it must be attached to a scene node.
Please correct my english
http://purebasic.developpez.com/
Post Reply